Arrest Warrant question

My ex has made a false claim in the county where we do the exchange of my son, which has led to there being a warrant out for my arrest. I am in shock over this.

I have a contempt hearing against him in my home county next week, for not providing documentation that was court ordered.
My question is can I go to the court house for the contempt hearing with this outstanding warrant or will I be arrested on the spot? We will be in a different county.
My ex will be there to appear on the contempt charges.

I understand that I will have to turn myself in, but I would like to speak to my attorney, so if I could wait until after the contempt hearing, I would like to.

I cannot say for sure will happen if you show up in court, but there is at least a good chance you will be arrested.