Skip to content

Commit

Permalink
NPE with added Resouce in AuthorizationSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
bohmber committed Jul 23, 2024
1 parent fba08a9 commit e95fff2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ private void updateAuthorizationResource(
existingClientAuthorizationResource.getOwner().setName(null);
}

if (existingClientAuthorizationResource.getAttributes().isEmpty() && authorizationResourceToImport.getAttributes() == null) {
if (existingClientAuthorizationResource.getAttributes() != null
&& existingClientAuthorizationResource.getAttributes().isEmpty()
&& authorizationResourceToImport.getAttributes() == null) {
existingClientAuthorizationResource.setAttributes(null);
}

Expand Down

0 comments on commit e95fff2

Please sign in to comment.