In this paper, a robust and accurate protocol is proposed to realize nondestructive parity measurement of artificial atoms using a superconducting resonator and homodyne measurement. With the help of an additional microwave driving field, the cavity field evolves into a coherent state or remains in a vacuum state according to the parity of the atoms. Consequently, the parity information of atoms can be read out by a homodyne measurement on the cavity. Parity information can be obtained without destroying the original state of the system, which means that the state can be further applied to other quantum information processing tasks after a parity measurement. The numerical simulation results show that the protocol is robust against systematic error, random noise, and decoherence. Therefore, this protocol can provide a feasible viewpoint for nondestructive parity measurement.