Skip to content

Commit 3d62ee6

Browse files
committed
Merge pull request #658 from dcrissman/listSizeZero
return a 0 list size if the passed in list is null
2 parents 7e84a78 + aea66ec commit 3d62ee6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

metadata/src/main/java/com/redhat/lightblue/metadata/parser/JSONMetadataParser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public JsonNode newList() {
8585

8686
@Override
8787
public int getListSize(JsonNode list) {
88+
if (list == null) {
89+
return 0;
90+
}
8891
return ((ArrayNode) list).size();
8992
}
9093

0 commit comments

Comments
 (0)