Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
Platform 1.12.0, Platform 1.11.6, Platform 2.0.0
-
None
-
None
-
Low
Description
If a concept does not have a default name for a locale i.e. it has only search terms or short name, the validation breaks with:
Caused by: java.lang.NullPointerException at org.openmrs.api.db.hibernate.HibernateConceptDAO.isConceptNameDuplicate(HibernateConceptDAO.java:1776) at org.openmrs.api.impl.ConceptServiceImpl.isConceptNameDuplicate(ConceptServiceImpl.java:1711) at sun.reflect.GeneratedMethodAccessor557.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)