[ https://issues.apache.org/jira/browse/NIFI-5877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard updated NIFI-5877: --------------------------------- Component/s: Extensions > Protect against null ClusterStatus in HBase Client Service > ---------------------------------------------------------- > > Key: NIFI-5877 > URL: https://issues.apache.org/jira/browse/NIFI-5877 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions > Affects Versions: 1.5.0, 1.6.0, 1.7.1 > Reporter: Bryan Bende > Assignee: Bryan Bende > Priority: Minor > Fix For: 1.9.0 > > > We currently get the masterAddress with this line of code: > {code:java} > masterAddress = admin.getClusterStatus().getMaster().getHostAndPort();{code} > If getClusterStatus() returns null, or getMaster() returns null, then this > code will throw a NPE and the service will fail to enable. > We only user the masterAddress for the transit URI of provenance events, and > we already protect against a blank/null masterAddress when generating the > URI, so we should protect against the possible nulls in the line above. -- This message was sent by Atlassian JIRA (v7.6.3#76005)