Skip to content

Build time return NullPointerException on get/set prefix method name in entity class #102

Closed
@chanhengseang3

Description

@chanhengseang3

Updating from 0.3.13 version to 0.3.17 returns NullPointerException . When class GraphQLJpaSchemaBuilder tries to search for @Transient , class IntrospectionUtils tries to read all the methods that have name start with get or set. Whenever the Entity class contains methods that have prefix get or set then it will try to find that properties. If the properties are not found then IntrospectionUtils will return NullPointerException.

There are cases that method names that start with get or set has nothing to do with properties. For example, with method getHello, it will try to find the property name hello. But there is no hello property in this entity. getHello method is not intended for get hello properties.

We tried to have Beans @Transient annotated on the method, but we still got NullException error.

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