Skip to content

Commit 7c1f20a

Browse files
committed
Fix FinderInputFormatClass, allocate Map.
1 parent 460f9a9 commit 7c1f20a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

engine/src/main/java/nl/inl/blacklab/index/FinderInputFormatClass.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package nl.inl.blacklab.index;
22

33
import java.util.ArrayList;
4+
import java.util.HashMap;
45
import java.util.List;
56
import java.util.Map;
67

@@ -32,6 +33,7 @@ public InputFormat find(String formatIdentifier) {
3233
*/
3334
private synchronized static Map<String, Class<? extends DocIndexerLegacy>> getLegacyDocIndexers() {
3435
if (legacyDocIndexers == null) {
36+
legacyDocIndexers = new HashMap<>();
3537
Reflections reflections = new Reflections("", new SubTypesScanner(false));
3638
for (Class<? extends DocIndexerLegacy> cl: reflections.getSubTypesOf(DocIndexerLegacy.class)) {
3739
String qualifiedName = cl.getName();

0 commit comments

Comments
 (0)