Skip to content

Commit 7e64a6f

Browse files
authored
Update FileHandler.java
1 parent f18495c commit 7e64a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/filelize/file/FileHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public <T> Map<String, T> readFileMap(String fullPath, Class<T> valueType) throw
4444
JavaType mapType = objectMapper.getTypeFactory().constructMapType(Map.class, String.class, valueType);
4545
return objectMapper.readValue(json.traverse(), mapType);
4646
} catch (NoSuchFileException e) {
47-
return null;
47+
return new HashMap<>();
4848
}
4949
}
5050

0 commit comments

Comments
 (0)