NY DRL §230
An action to annul a marriage, or to declare the nullity of a void marriage, or for divorce or separation may be maintained only when:
-
The parties were married in the state and either party is a resident thereof when the action is commenced and has been a resident for a continuous period of one year immediately preceding, or
-
The parties have resided in this state as husband and wife and either party is a resident thereof when the action is commenced and has been a resident for a continuous period of one year immediately preceding, or
-
The cause occurred in the state and either party has been a resident thereof for a continuous period of at least one year immediately preceding the commencement of the action, or
-
The cause occurred in the state and both parties are residents thereof at the time of the commencement of the action, or
-
Either party has been a resident of the state for a continuous period of at least two years immediately preceding the commencement of the action.