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

Possible null pointer dereference due to return value of modulesFolder.listFiles() in ModuleFactory

    XMLWordPrintable

Details

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

    Description

      On line https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/module/ModuleFactory.java#L174

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

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: