mirror of https://github.com/apache/lucene.git
defend against npe
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1300434 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f7cf65f76c
commit
fe9b072490
|
@ -308,7 +308,9 @@ public class SolrDispatchFilter implements Filter
|
|||
for (Entry<String,Slice> entry : entries) {
|
||||
// first see if we have the leader
|
||||
ZkNodeProps leaderProps = cloudState.getLeader(collection, entry.getKey());
|
||||
core = checkProps(cores, path, leaderProps);
|
||||
if (leaderProps != null) {
|
||||
core = checkProps(cores, path, leaderProps);
|
||||
}
|
||||
if (core != null) {
|
||||
break done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue