Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5042

Possible null pointer dereference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      there are several occasions where java File.listFiles() is dereferenced without checking it for null which is a potential return value. This can thus lead to a NullPointerException in case the File (with File.isDirectory() == true) is an empty directory.

      see on sonar
      https://sonar.openmrs.org/project/issues?id=org.openmrs%3Aopenmrs&resolved=false&rules=findbugs%3ANP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE&severities=CRITICAL

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                teleivo Ivo Ulrich
                Reporter:
                teleivo Ivo Ulrich
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 20 minutes
                    20m