We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f18495c commit 7e64a6fCopy full SHA for 7e64a6f
src/main/java/io/github/filelize/file/FileHandler.java
@@ -44,7 +44,7 @@ public <T> Map<String, T> readFileMap(String fullPath, Class<T> valueType) throw
44
JavaType mapType = objectMapper.getTypeFactory().constructMapType(Map.class, String.class, valueType);
45
return objectMapper.readValue(json.traverse(), mapType);
46
} catch (NoSuchFileException e) {
47
- return null;
+ return new HashMap<>();
48
}
49
50
0 commit comments