ignore null values in tags

This commit is contained in:
2018-04-14 09:58:51 +02:00
parent 7018a11ab3
commit 23e16ff61d

View File

@@ -86,9 +86,11 @@ public class DataStore {
final String value = tags.getValue(key);
final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList());
synchronized (docIds) {
docIds.add(docId);
if (value != null) {
final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList());
synchronized (docIds) {
docIds.add(docId);
}
}
}
}