Uploaded image for project: 'OpenMRS - ADX -  DHIS Report Module'
  1. OpenMRS - ADX - DHIS Report Module
  2. DRM-28

'Map Location' Page Crash when DHIS2 Instance has no ORG Units.

    Details

    • Type: Bug
    • Status: Code Review (Initial)
    • Priority: Must
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0, 2.1
    • Complexity:
      Low

      Description

      Map Location Page (http://localhost:8080/openmrs/module/dhisreport/mapLocations.form) Crashes when DHIS2 Instance has no ORG Units. This happens because when we try to extract OrganizationUnits from metaData it returns Null. This null value is not yet checked.

      How to reproduce the bug?
      Prerequisite:
      1. OpenMRS Instance with DHISReport Module Installed on it. https://github.com/openmrs/openmrs-module-dhisreport
      2. DHIS2 Instance.
      Do not enter any ORG units in DHIS2 Instance.

      Click on 'DHIS' tab at OpenMRS Home to enter into DHISReport Module.
      Then Click on 'Map Location' tab.
      You will find that page crashes.

        Gliffy Diagrams

          Attachments

            Issue Links

              Attachments-Category-Modification

                Activity

                  People

                  • Assignee:
                    shahidfoy Shahid Foy
                    Reporter:
                    pralay pralay ramteke
                    Watchers:
                    Choxmi Sathsara, Daniel Kayiwa, pralay ramteke, Shahid Foy
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    4 Start watching this issue

                    Dates

                    • Created:
                      Updated:

                      Time Tracking

                      Estimated:
                      Original Estimate - 3 hours
                      3h
                      Remaining:
                      Remaining Estimate - 0 minutes
                      0m
                      Logged:
                      Time Spent - 3 hours
                      3h