diff --git a/jnosql-mapping/jnosql-mapping-reflection/src/main/java/org/eclipse/jnosql/mapping/reflection/DefaultArrayFieldMetadata.java b/jnosql-mapping/jnosql-mapping-reflection/src/main/java/org/eclipse/jnosql/mapping/reflection/DefaultArrayFieldMetadata.java index 3895c8df2..781699eb4 100644 --- a/jnosql-mapping/jnosql-mapping-reflection/src/main/java/org/eclipse/jnosql/mapping/reflection/DefaultArrayFieldMetadata.java +++ b/jnosql-mapping/jnosql-mapping-reflection/src/main/java/org/eclipse/jnosql/mapping/reflection/DefaultArrayFieldMetadata.java @@ -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 {