Bug: Find the old user group by ID, not code
Assignee
Josef Plch
Josef PlchReporter
Josef Plch
Josef PlchLabels
None
Sprint
None
Description
Steps to reproduce
None
Activity
Show:
Fixed
Details
Details
Time tracking
2h logged
Priority
QA Testing
UNDECIDED
Created October 11, 2023 at 9:32 AM
Updated October 12, 2023 at 7:56 AM
Resolved October 11, 2023 at 11:23 AM
In
Security#updateUserGroup
, we look up the current group this way:UserGroup oldGroup = findUserGroupByCode(group.getCode());
This approach fails with
NullPointerException
as soon as the group's code is modified. Use the ID instead.