Skip to content

Commit a0a7e24

Browse files
committed
fix: handle null attributes and scope checks in user profile and resource permission logic
1 parent e2808e6 commit a0a7e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/hawk/keycloak/profiles/PartialUpdateUserProfileProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected Attributes createAttributes(UserProfileContext context, Map<String, ?>
6767
}
6868
break;
6969
default:
70-
if (!partialRep.getAttributes().containsKey(value.getName())) {
70+
if (partialRep.getAttributes() != null && !partialRep.getAttributes().containsKey(value.getName())) {
7171
value.addWriteCondition(context1 -> false);
7272
}
7373
break;

0 commit comments

Comments
 (0)