-Your H1 status is irrelevant to your green card application (your activation of H1B does not results your绿卡申请自动无效). But if you divorce, your green card application which derived from your hu*****and's application (I-140) will be invalid.
So, you had better get your H1 status and then, you can apply for the green card by yourself if you have to divorce.