[ 
https://issues.apache.org/jira/browse/NIFI-8400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess reassigned NIFI-8400:
----------------------------------

    Assignee: Matt Burgess

> SystemDiagnostics throws NPE on Windows
> ---------------------------------------
>
>                 Key: NIFI-8400
>                 URL: https://issues.apache.org/jira/browse/NIFI-8400
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to