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,12 +86,14 @@ public class DataStore {
final String value = tags.getValue(key); final String value = tags.getValue(key);
if (value != null) {
final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList()); final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList());
synchronized (docIds) { synchronized (docIds) {
docIds.add(docId); docIds.add(docId);
} }
} }
} }
}
private void trimIntLists() { private void trimIntLists() {
final long start = System.nanoTime(); final long start = System.nanoTime();