Skip to content

Commit

Permalink
fix(core): TaskDefault can have null values
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Aug 17, 2023
1 parent dabb9ce commit b845cb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static Object recursiveDefaults(Object object, Map<String, List<TaskDefa
e.getKey(),
recursiveDefaults(e.getValue(), defaults)
))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (a1, a2) -> a2));
.collect(HashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), HashMap::putAll);
} else if (object instanceof Collection) {
Collection<?> value = (Collection<?>) object;
return value
Expand Down

0 comments on commit b845cb7

Please sign in to comment.