Skip to content

Commit 6b4b11c

Browse files
committed
fixed NPE on SimpleContentChecker
1 parent 95df7ea commit 6b4b11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/restheart/hal/metadata/singletons/SimpleContentChecker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private BasicDBList filterMissingOptionalAndNullNullableConditions(BasicDBList c
294294
try {
295295
props = JsonUtils.getPropsFromPath(content, path);
296296

297-
if (props.stream().allMatch((Optional<Object> prop) -> {
297+
if (props == null || props.stream().allMatch((Optional<Object> prop) -> {
298298
return prop == null;
299299
})) {
300300
nullPaths.add(path);

0 commit comments

Comments
 (0)