[
https://issues.apache.org/jira/browse/NIFI-5877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16712024#comment-16712024
]
ASF GitHub Bot commented on NIFI-5877:
--------------------------------------
Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/3206
+1, merging to master, thanks @bbende
> 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
> Affects Versions: 1.5.0, 1.6.0, 1.7.1
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
>
> 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)