Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8400

SystemDiagnostics throws NPE on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • Core Framework
    • None

    Description

      SystemDiagnostics includes some Long member variables such as openFileHandles that are not populated on Windows, so they remain null and when getOpenFileHandles() is called, the null is cast to a long which throws an NPE.

      The member variables should be long not Long, thereby getting a default value of zero and avoiding an NPE when the values are not populated. If Long is used elsewhere, a null check should be added to avoid possible NPEs when calling the setter methods.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h