Skip to content

Commit 5b4fc73

Browse files
committed
Merge branch '6.5.x' into 7.0.x
2 parents 1906075 + ef76ba0 commit 5b4fc73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/web/CacheSaml2AuthenticationRequestRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public AbstractSaml2AuthenticationRequest loadAuthenticationRequest(HttpServletR
5252
@Override
5353
public void saveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest,
5454
HttpServletRequest request, HttpServletResponse response) {
55+
Assert.notNull(authenticationRequest, "authenticationRequest must not be null");
5556
String relayState = request.getParameter(Saml2ParameterNames.RELAY_STATE);
5657
Assert.notNull(relayState, "relayState must not be null");
5758
this.cache.put(relayState, authenticationRequest);

0 commit comments

Comments
 (0)