openmrs/openmrs-core — pull request #867 by haychris (2014-04-12 21:10:27+00:00)
Title: "TRUNK-2758 Automated Error Report: NPE when creating patient without an identifier type"

Checking if a PatientIdentifierType was unique before testing if it was valid caused the NullPointerException described in the ticket, so the check for a PatientIdentifierType was moved to occur before the uniqueness test.