Skip to content

Commit

Permalink
Merge branch 'fixDefaultRoleServiceNPE' into directoryGroupErrorHandling
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsolomon committed Apr 3, 2024
2 parents 1f7cfbd + 4228653 commit 3ca3026
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
### 💥 Breaking Changes
* Requires `hoist-react >= 63.0` for client-side support of the new `track` and `submitError` endpoints.
*
### 🐞 Bug Fixes
* Fixed bug in `DefaultRoleService.doLoadUsersForDirectoryGroups` where LDAP members with `null`
samAccountNames were not being filtered out, causing `NullPointerExceptions`.
## 18.5.1 - 2024-03-08
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ class DefaultRoleService extends BaseRoleService {
ldapService
.lookupGroupMembers(foundGroups)
.each {name, members ->
ret[name] = members.collect(new HashSet()) { it.samaccountname.toLowerCase()}
ret[name] = members
.collect(new HashSet()) { it.samaccountname?.toLowerCase() }
.remove(null)
}

return ret
Expand Down

0 comments on commit 3ca3026

Please sign in to comment.