mirror of
https://github.com/apache/lucene.git
synced 2025-02-20 17:07:09 +00:00
avoid possible logging npe in race
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1411932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
925dcb80bd
commit
617028b3c1
@ -186,7 +186,7 @@ public class ZkStateReader {
|
||||
if (EventType.None.equals(event.getType())) {
|
||||
return;
|
||||
}
|
||||
log.info("A cluster state change has occurred - updating... ({})", ZkStateReader.this.clusterState.getLiveNodes().size());
|
||||
log.info("A cluster state change has occurred - updating... ({})", ZkStateReader.this.clusterState == null ? 0 : ZkStateReader.this.clusterState.getLiveNodes().size());
|
||||
try {
|
||||
|
||||
// delayed approach
|
||||
|
Loading…
x
Reference in New Issue
Block a user