diff --git a/config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java b/config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java index 6ef3b72345..57b04ac274 100644 --- a/config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java +++ b/config/src/main/java/org/springframework/security/config/SecurityNamespaceHandler.java @@ -102,6 +102,7 @@ public final class SecurityNamespaceHandler implements NamespaceHandler { if (parser == null) { // SEC-1455. Load parsers when required, not just on init(). loadParsers(); + parser = this.parsers.get(name); } if (parser != null) { return parser.parse(element, pc);