Skip to content

NullPointerException in equals(), hashCode() and toString() with @Nullable Vector. #34

Open
@cozycode

Description

@cozycode

I am creating an Immutable POJO object which needs to support an @Nullable Vector and the toString(), equals() and hashCode() methods are throwing NPEs because they assume the vector will never be null.

Most of the time this isn't an issue because I don't let the Vectors be nullable, but I now have a situation where it is not avoidable. I have worked around it by overriding those three methods, but this is something that I feel should be fixed in the "org.immutables.vavr:vavr-encodings" artifact (i.e. this project).

Thanks for all you do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions