A lawsuit brought by former Department of Motor Vehicles employee Lisa Marie Cater who accused top former economic development official Sam Hoyt of sexual harassment was dismissed on Tuesday by a federal judge.

At the same time in a parallel decision, Judge Robert Sweet dismissed a suit against Empire State Development Corp.

Sweet wrote that Cater had failed to prove Hoyt had created a hostile work environment or that she faced retaliation because Hoyt worked at a different state agency.

Cater’s suit “has not explained how Hoyt’s non-work-related conduct created a work environment sufficiently severe or pervasive “to alter the conditions of [her] employment and create an abusive working environment” Sweet wrote in the ruling.

Cater’s suit also “makes no attempt to explain how her claims can proceed in light of this deficiency, but rather makes unconnected claims about Hoyt’s alleged non-workplace conduct” the judge ruled.

A lawsuit previously filed by Cater against Gov. Andrew Cuomo was dismissed last year.

Hoyt, a former Assembly lawmaker, was appointed by Cuomo in 2011 to lead economic development efforts in western New York. Hoyt had previously been admonished while in the Legislature for having a sexual relationship with a 19-year-old intern.

State lawmakers this month plan to hold a public hearing on the issue of sexual harassment and assault in state government and how to improve the current laws.