It is as though your second marriage did not happen. You are still married to your first wife. Speak to an attorney as soon as possible to discuss how to resolve this.
Your question is phrased in the future tense "if I get married" instead of past tense "If I got married."
So, if you have not gotten remarried yet and your divorce is not final, then simply wait until your divorce is final.
If you already got remarried then you may want to ask a lawyer about how the putative spouse doctrine might come into play by your new "spouse" if that person wants to take some property.
Whether you were aware of it or not, if you remarried before you were divorced from your former wife, your second marriage is not valid. If you have not yet remarried (it's difficult to tell from your question), you need to wait to get married until you are divorced.