You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (JIRA)" <ji...@apache.org> on 2018/12/06 20:03:00 UTC

[jira] [Updated] (NIFI-5877) Protect against null ClusterStatus in HBase Client Service

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

Bryan Bende updated NIFI-5877:
------------------------------
    Status: Patch Available  (was: Open)

> 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.7.1, 1.6.0, 1.5.0
>            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)