Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-113

java.lang.NullPointerException in PersonByNameComparator when one of the compared persons is null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: HTML Form Entry 1.7.0.1, HTML Form Entry 1.7.1
    • Fix Version/s: HTML Form Entry 1.7.2
    • Labels:
      None
    • Complexity:
      Low

      Description

      Version: 1.7.0 Build 16574
      Implementation ID:
      User ID: ondod
      Started Modules: serialization.xstream v0.2.4, logic v0.4, dataentrystatistics v1.3, htmlformentry v1.7.0.1, reportingcompatibility v1.5.1.1, formentry v4.5.4

      Summary:
      java.lang.NullPointerException

      Description:
      Stack trace:
      org.openmrs.module.htmlformentry.widget.PersonByNameComparator.compare(PersonByNameComparator.java:16)
      org.openmrs.module.htmlformentry.widget.PersonByNameComparator.compare(PersonByNameComparator.java:1)
      java.util.Arrays.mergeSort(Arrays.java:1283)
      java.util.Arrays.mergeSort(Arrays.java:1295)
      java.util.Arrays.mergeSort(Arrays.java:1295)
      java.util.Arrays.mergeSort(Arrays.java:1295)
      java.util.Arrays.sort(Arrays.java:1223)
      java.util.Collections.sort(Collections.java:176)
      org.openmrs.module.htmlformentry.element.EncounterDetailSubmissionElement.<init>(EncounterDetailSubmissionElement.java:165)
      org.openmrs.module.htmlformentry.handler.EncounterProviderHandler.getSubstitution(EncounterProviderHandler.java:22)
      org.openmrs.module.htmlformentry.handler.SubstitutionTagHandler.doStartTag(SubstitutionTagHandler.java:43)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:279)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:296)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:296)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:296)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:296)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTagsHelper(HtmlFormEntryGenerator.java:296)
      org.openmrs.module.htmlformentry.HtmlFormEntryGenerator.applyTags(HtmlFormEntryGenerator.java:254)
      org.openmrs.module.htmlformentry.FormEntrySession.createForm(FormEntrySession.java:311)
      org.openmrs.module.htmlformentry.FormEntrySession.<init>(FormEntrySession.java:200)
      org.openmrs.module.htmlformentry.web.controller.HtmlFormEntryController.formBackingObject(HtmlFormEntryController.java:105)
      org.openmrs.module.htmlformentry.web.controller.HtmlFormEntryController.formBackingObject(HtmlFormEntryController.java:1)
      at [ignored] ...
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:65)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:76)
      org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:58)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:112)
      at [ignored] ...
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at [ignored] ...
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:83)
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at [ignored] ...
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      java.lang.Thread.run(Thread.java:636)

        Attachments

          Activity

            People

            • Assignee:
              darius Darius Jazayeri
              Reporter:
              bwolfe Ben Wolfe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: