Bryan Bende created NIFI-5877:
---------------------------------

             Summary: 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


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)

Reply via email to