|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright 2002-2019 the original author or authors.
|
|
|
|
|
|
+ * Copyright 2002-2021 the original author or authors.
|
|
*
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -48,7 +48,7 @@ public class InMemoryRelyingPartyRegistrationRepository
|
|
for (RelyingPartyRegistration rp : rps) {
|
|
for (RelyingPartyRegistration rp : rps) {
|
|
Assert.notNull(rp, "relying party collection cannot contain null values");
|
|
Assert.notNull(rp, "relying party collection cannot contain null values");
|
|
String key = rp.getRegistrationId();
|
|
String key = rp.getRegistrationId();
|
|
- Assert.notNull(rp, "relying party identifier cannot be null");
|
|
|
|
|
|
+ Assert.notNull(key, "relying party identifier cannot be null");
|
|
Assert.isNull(result.get(key), () -> "relying party duplicate identifier '" + key + "' detected.");
|
|
Assert.isNull(result.get(key), () -> "relying party duplicate identifier '" + key + "' detected.");
|
|
result.put(key, rp);
|
|
result.put(key, rp);
|
|
}
|
|
}
|