fix NPE introduced on optimization of index status on docs status creation
This commit is contained in:
parent
70c344b079
commit
04ae1581a0
|
@ -135,6 +135,9 @@ public class IndexStatus implements Iterable<IndexShardStatus> {
|
||||||
if (shard.docs() == null) {
|
if (shard.docs() == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (docs == null) {
|
||||||
|
docs = new DocsStatus();
|
||||||
|
}
|
||||||
docs.numDocs += shard.docs().numDocs();
|
docs.numDocs += shard.docs().numDocs();
|
||||||
docs.maxDoc += shard.docs().maxDoc();
|
docs.maxDoc += shard.docs().maxDoc();
|
||||||
docs.deletedDocs += shard.docs().deletedDocs();
|
docs.deletedDocs += shard.docs().deletedDocs();
|
||||||
|
|
Loading…
Reference in New Issue