This question already has an answer here:
I've read an answer about traveling via a third country in case dual citizenship might not to be OK, and I don't know whether it is technically possible. I'm a citizen of Germany and Saudi Arabia, and I want to travel via UAE. Once I arrive in Saudi Arabia, I'll try to enter with KSA pass but a Saudi official may see from passport that I live in Germany, and in that point is there a risk that he may ask me for German residence permit or stamps or a visa? How can I possibly tackle this situation?