Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4967

NPE in HibernateConceptDAO.isConceptNameDuplicate

    Details

    • Complexity:
      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)
      

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  raff Rafal Korytkowski
                  Reporter:
                  raff Rafal Korytkowski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: