NIFI-6589: Addressed NPE

This commit is contained in:
Mark Payne 2019-10-02 10:50:44 -04:00 committed by Bryan Bende
parent 8d748223ff
commit 2f6f852915
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ public class CuratorLeaderElectionManager implements LeaderElectionManager {
if (leader == null) {
logger.debug("Reached out to ZooKeeper to determine which node is the elected leader for Role '{}' but found that there is no leader.", roleName);
setLeader(false);
return false;
}
final boolean match = leader.equals(participantId);