Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- fixes
-
MINIFI-550 Failed to capture component stats for Stats History
- Resolved
-
NIFI-8401 o.apache.nifi.controller.FlowController Failed to capture component stats for Stats History on Windows Systems
- Resolved
- links to