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

Possible null pointer dereference due to return value of file.listFiles() in Listener

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed

    Description

      On lines https://github.com/openmrs/openmrs-core/blob/master/web/src/main/java/org/openmrs/web/Listener.java#L432

      And https://github.com/openmrs/openmrs-core/blob/master/web/src/main/java/org/openmrs/web/Listener.java#L523

      you will get a null pointer exception if file.listFiles() returns null. We therefore need to check for null before looping

      Gliffy Diagrams

        Attachments

          Activity

            People

              navareth Bartłomiej Rasztabiga
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: