Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1512

Patient Dashboard failed to show the customized error message for null patient

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      If the required patient isn't registered in the system, then the patient dashboard just displayed an error stack in the page. 

      UI Framework Error 
      Root Error
      java.lang.NullPointerException at org.openmrs.module.coreapps.page.controller.clinicianfacing.PatientPageController.controller(PatientPageController.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openmrs.ui.framework.UiFrameworkUtil.invokeMethodWithArguments(UiFrameworkUtil.java:112) at org.openmrs.ui.framework.UiFrameworkUtil.executeControllerMethod(UiFrameworkUtil.java:71) at org.openmrs.ui.framework.page.PageFactory.handleRequestWithController(PageFactory.java:219) at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:160) at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:116) at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86) at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:116) at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke()
      

      Users can't get any information through this error stack since it's totally for developers. So the patient dashboard should show the error message in the dashboard if System couldn't find the required patient.
      Eg : Could not find the patient for required patientId(94185)

        Gliffy Diagrams

          Attachments

          1. image-2018-07-10-11-51-54-602.png
            image-2018-07-10-11-51-54-602.png
            20 kB
          2. image-2018-07-10-15-20-49-291.png
            image-2018-07-10-15-20-49-291.png
            25 kB
          3. screenshot-1.png
            screenshot-1.png
            64 kB

            Activity

              People

              Assignee:
              reubenv Reuben Varghese
              Reporter:
              suthagar23 Suthagar Kailayapathy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: