Skip to content

Commit

Permalink
Merge pull request eclipse-kapua#4120 from Agnul97/fix-missing_type_s…
Browse files Browse the repository at this point in the history
…erviceconfig_default_value

⚡ [REST API] Restore possibility to update a service configuration property with a "default" value
  • Loading branch information
Coduz authored Oct 17, 2024
2 parents d8d3596 + e5c4dce commit 3690866
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Map<String, Object> unmarshal(V[] properties) {
.orElse(Collections.emptyList())
.stream()
.peek(adaptedProp -> {
if (adaptedProp.getType() == null) {
if (adaptedProp.getType() == null && adaptedProp.getValues() != null) {
throw new InternalError("null value for property.type parameter");
}
})
Expand Down

0 comments on commit 3690866

Please sign in to comment.