Skip to content

Commit 9a07bd9

Browse files
authored
Merge pull request wildfly#6279 from jamezp/WFCORE-7089
[WFCORE-7089] When setting a policy in the PolicyDefinitions do not a…
2 parents 6afcedd + 13264d8 commit 9a07bd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elytron/src/main/java/org/wildfly/extension/elytron/PolicyDefinitions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ public Policy getValue() throws IllegalStateException, IllegalArgumentException
199199
}
200200

201201
private void setPolicy(Policy policy) {
202-
policy.refresh();
202+
if (policy != null) {
203+
policy.refresh();
204+
}
203205
try {
204206
if (WildFlySecurityManager.isChecking()) {
205207
AccessController.doPrivileged(setPolicyAction(policy));

0 commit comments

Comments
 (0)