Skip to content

Commit f0612ef

Browse files
WS-3466: null check
1 parent f91bdef commit f0612ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

model/src/main/java/com/basistech/rosette/apimodel/Response.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public void addExtendedInformation(String key, Object value) {
4747
}
4848

4949
public void addExtendedInformation(Map<String, Object> extendedInformation) {
50+
if (extendedInformation == null || extendedInformation.isEmpty()) {
51+
return;
52+
}
5053
for (Map.Entry<String, Object> entry : extendedInformation.entrySet()) {
5154
addExtendedInformation(entry.getKey(), entry.getValue());
5255
}

0 commit comments

Comments
 (0)