Skip to content

Commit 1806ceb

Browse files
Russell-Allenmarcusdacoregio
authored andcommitted
Fix Assertion
Closes gh-10055
1 parent 87687bf commit 1806ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

saml2/saml2-service-provider/src/main/java/org/springframework/security/saml2/provider/service/registration/InMemoryRelyingPartyRegistrationRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,7 +48,7 @@ private static Map<String, RelyingPartyRegistration> createMappingToIdentityProv
4848
for (RelyingPartyRegistration rp : rps) {
4949
Assert.notNull(rp, "relying party collection cannot contain null values");
5050
String key = rp.getRegistrationId();
51-
Assert.notNull(rp, "relying party identifier cannot be null");
51+
Assert.notNull(key, "relying party identifier cannot be null");
5252
Assert.isNull(result.get(key), () -> "relying party duplicate identifier '" + key + "' detected.");
5353
result.put(key, rp);
5454
}

0 commit comments

Comments
 (0)