Skip to content

Commit 2befb9a

Browse files
Karthikeyan RKarthikeyan R
Karthikeyan R
authored and
Karthikeyan R
committed
Added null check for authentication object
Closes spring-projectsgh-11510
1 parent fbc4d75 commit 2befb9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/springframework/security/authorization/AuthenticatedAuthorizationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static final class FullyAuthenticatedAuthorizationStrategy extends Authe
143143

144144
@Override
145145
boolean isGranted(Authentication authentication) {
146-
return this.trustResolver.isFullyAuthenticated(authentication);
146+
return authentication != null && this.trustResolver.isFullyAuthenticated(authentication);
147147
}
148148

149149
}

0 commit comments

Comments
 (0)