Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

NPE in DataManager when trying to load KV entity #75

Closed
belyaev-andrey opened this issue Jun 12, 2021 · 1 comment
Closed

NPE in DataManager when trying to load KV entity #75

belyaev-andrey opened this issue Jun 12, 2021 · 1 comment
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@belyaev-andrey
Copy link

Jmix version: 1.1.0-SNAPSHOT
Jmix Studio plugin version: 1.0.SNAPSHOT3028-211
IntelliJ version: IntelliJ IDEA 2021.1.2 (Ultimate Edition)

STR:

  • Create "Task" entity and make an M:O association with "User"
  • Create Browser and Editor screens for the "Task"
  • Create @Component with the method that returns User:findUser. See the code in the attachment.
  • Create onInitEntity handler in Task Editor and try to fill the reference field with the method invocation result

ER:
The method returns something

AR:
NullPointerException appears

Even the simplest query like

dataManager.loadValues("select u from User u").properties("user").list();

causes NPE

Attachement: NPE-jmix-test.zip

@knstvk knstvk added the type: bug Something isn't working label Jun 15, 2021
@knstvk knstvk added this to the 1.0.0 milestone Jun 15, 2021
artemglinov added a commit to jmix-projects/jmix-security that referenced this issue Jun 17, 2021
artemglinov added a commit to jmix-projects/jmix-security that referenced this issue Jun 17, 2021
artemglinov added a commit to jmix-projects/jmix-security that referenced this issue Jun 17, 2021
@lovtsovaik
Copy link

1.0.0-SNAPSHOT - ok,
1.1.0-SNAPSHOT - ok

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants