-
Notifications
You must be signed in to change notification settings - Fork 693
Labels
affects/8.8Issue is affecting 8.8 minor versionsIssue is affecting 8.8 minor versionscomponent/zeebeRelated to the Zeebe component/teamRelated to the Zeebe component/teamkind/bugCategorizes an issue or PR as a bugCategorizes an issue or PR as a buglikelihood/highA recurring issueA recurring issueseverity/highMarks a bug as having a noticeable impact on the user with no known workaroundMarks a bug as having a noticeable impact on the user with no known workaroundversion:8.8.0-alpha8version:8.8.0-alpha8-rc1
Description
Description
Line 21 in 42be254
private Short resourceMatcher; |
Lines 54 to 61 in 42be254
public short getResourceMatcher() { | |
return resourceMatcher; | |
} | |
public AuthorizationEntity setResourceMatcher(final short resourceMatcher) { | |
this.resourceMatcher = resourceMatcher; | |
return this; | |
} |
this.resourceMatcher
is a boxed Short
and can be null, but these methods require an unboxed short which is implemented by calling java.lang.Short.shortValue()
on it. But, it's null
and so it leads to an NPE:
java.lang.NullPointerException: Cannot invoke "java.lang.Short.shortValue()" because "this.resourceMatcher" is null
at io.camunda.webapps.schema.entities.usermanagement.AuthorizationEntity.getResourceMatcher(AuthorizationEntity.java:55)
at io.camunda.search.clients.transformers.entity.AuthorizationEntityTransformer.apply(AuthorizationEntityTransformer.java:27)
at io.camunda.search.clients.transformers.entity.AuthorizationEntityTransformer.apply(AuthorizationEntityTransformer.java:14)
Steps to reproduce
🤷
Current behavior
NPE is thrown
Expected behavior
No NPE is thrown
Environment
SaaS & SM
Version
- Component Version: [e.g. 2.0.0]
Rootcause
No response
Solution ideas
No response
Dev -> QA handover
- Resources:
- Versions to validate:
- Release version (in which version this feature will be released):
Links
Metadata
Metadata
Assignees
Labels
affects/8.8Issue is affecting 8.8 minor versionsIssue is affecting 8.8 minor versionscomponent/zeebeRelated to the Zeebe component/teamRelated to the Zeebe component/teamkind/bugCategorizes an issue or PR as a bugCategorizes an issue or PR as a buglikelihood/highA recurring issueA recurring issueseverity/highMarks a bug as having a noticeable impact on the user with no known workaroundMarks a bug as having a noticeable impact on the user with no known workaroundversion:8.8.0-alpha8version:8.8.0-alpha8-rc1
Type
Projects
Status
Done