Yup - major no-no for most any situation. If the PCs didn't talk to the npc would they have never found the city? Seems unlikely as they were there, in the desert, to find the crystal. Seems to me they would start searching the entire desert and would, eventually, find it.
Should they have...