Skip to content

Commit

Permalink
chore: include validation to value
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Aug 13, 2024
1 parent bdd3a75 commit c44ca6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ final class DefaultArrayFieldMetadata extends AbstractFieldMetadata implements A

@Override
public Object value(Value value) {
Objects.requireNonNull(value, "value is required");
if(value.get() instanceof Iterable) {
return value.get(TYPE_SUPPLIER).toArray();
} else {
Expand Down

0 comments on commit c44ca6f

Please sign in to comment.