A NSW police officer has been charged over an offensive and threatening phone call allegedly made to Senator Sarah Hanson-Young earlier this year.

The 56-year-old senior constable, who is not currently on duty, allegedly made the threatening phone call to the Greens senator's office in July.

Senator Sarah Hanson-Young's office received the alleged threatening phone call in July. Credit:Alex Ellinghausen

A spokeswoman for Ms Hanson-Young confirmed on Friday the senator was the recipient of the alleged threats.

"In July, in the midst of the public debate regarding comments made by Senator Leyonhjelm about me, I received threats which were reported to the AFP," Ms Hanson-Young said in a statement on Friday.