Skip to content

Commit 955bf58

Browse files
committed
3267 Workflow Inputs break the PATCH parameters endpoint
1 parent 376fb69 commit 955bf58

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • server/libs/core/commons/commons-util/src/main/java/com/bytechef/commons/util

server/libs/core/commons/commons-util/src/main/java/com/bytechef/commons/util/MapUtils.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ public static <K, V> Map<K, V> concat(Map<K, V> map1, Map<K, V> map2) {
7272
Validate.notNull(map1, "'map1' must not be null");
7373
Validate.notNull(map2, "'map2' must not be null");
7474

75-
return Stream.concat(stream(map1), stream(map2))
75+
return Stream
76+
.concat(
77+
stream(map1)
78+
.filter(entry -> entry.getValue() != null),
79+
stream(map2)
80+
.filter(entry -> entry.getValue() != null))
7681
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (v1, v2) -> v2));
7782
}
7883

0 commit comments

Comments
 (0)