Skip to content

NPE on Field Constraint Validation for Fields with no (null) Constraints #134

@baalmael

Description

@baalmael

It is not required for Fields to have constraints, so field.constraints can be null.
This leads to an NPE when calling field.checkConstraintViolations(...)

java.lang.NullPointerException: Cannot invoke "java.util.Map.containsKey(Object)" because "this.constraints" is null

	at io.frictionlessdata.tableschema.field.Field.checkConstraintViolations(Field.java:285)

I am happy to work on a fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions