Skip to content

Passing null into constructor of EntityWrapper #354

Description

@s4heid

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After #318, it is no longer possible to pass null, as an argument for the Entity into the constructor of the EntityWrapper. This is because we need to retrieve the created entity.

If this breaking change was not intended, I would like to propose adding a null check.

Expected Behavior

If the Entity is null, complete the promise and respond with No Content.

Steps To Reproduce

new EntityWrapper(ENTITY_NAME, (Entity) null)

Environment

- OS: ubuntu
- Java: 11
- NeonBee: 0.0.26

Relevant log output

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageThis issue needs to be investigated and confirmed as a valid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions