Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when multi-value feature has no value #3965

Closed
reckart opened this issue Apr 20, 2023 · 0 comments
Closed

NPE when multi-value feature has no value #3965

reckart opened this issue Apr 20, 2023 · 0 comments
Assignees
Labels
🐛Bug Something isn't working Module: Recommender
Projects
Milestone

Comments

@reckart
Copy link
Member

reckart commented Apr 20, 2023

Describe the bug
There can be an NPE when a multi-value feature has no value.

Screenshots

java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because "handles" is null
    at de.tudarmstadt.ukp.inception.ui.kb.feature.MultiValueConceptFeatureSupport.getLazyDetails(MultiValueConceptFeatureSupport.java:343) ~[inception-ui-kb-27.5-SNAPSHOT.jar!/:?]
    at de.tudarmstadt.ukp.inception.rendering.Renderer.getLazyDetails(Renderer.java:119) ~[inception-api-schema-27.5-SNAPSHOT.jar!/:?]
    at de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.Renderer_ImplBase.renderLazyDetails(Renderer_ImplBase.java:150) ~[inception-api-annotation-27.5-SNAPSHOT.jar!/:?]

Please complete the following information:

  • Version and build ID: 27.5
@reckart reckart added 🐛Bug Something isn't working Module: Recommender labels Apr 20, 2023
@reckart reckart added this to the 27.7 milestone Apr 20, 2023
@reckart reckart self-assigned this Apr 20, 2023
@reckart reckart added this to 🔖 To do in Kanban via automation Apr 20, 2023
reckart added a commit that referenced this issue Apr 20, 2023
- Handle case where feature value is null
@reckart reckart closed this as completed Apr 20, 2023
Kanban automation moved this from 🔖 To do to 🍹 Done Apr 20, 2023
reckart added a commit that referenced this issue Apr 20, 2023
* release/27.x:
  #3965 - NPE when multi-value feature has no value
reckart added a commit that referenced this issue Apr 20, 2023
* main:
  #3965 - NPE when multi-value feature has no value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Something isn't working Module: Recommender
Projects
Kanban
  
🍹 Done
Development

No branches or pull requests

1 participant