Uploaded image for project: 'Google Code-in'
  1. Google Code-in
  2. GCI-238

Possible null pointer dereference due to return value of folder.listFiles() in WebModuleUtil

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Change Implemented
    • Complexity:
      Low

      Description

      On line  https://github.com/openmrs/openmrs-core/blob/master/web/src/main/java/org/openmrs/module/web/WebModuleUtil.java#L687 

      you will get a null pointer exception if folder.listFiles() returns null. We therefore need to check for null before using the return value.

        Attachments

          Activity

            People

            Assignee:
            jwnasambu Juliet Wamalwa
            Reporter:
            dkayiwa Daniel Kayiwa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 weeks
                2w
                Remaining:
                Time Spent - 1 day, 4 hours Remaining Estimate - 1 week, 3 days, 4 hours
                1w 3d 4h
                Logged:
                Time Spent - 1 day, 4 hours Remaining Estimate - 1 week, 3 days, 4 hours
                1d 4h