Refresh parsers when not found

Closes gh-3065
This commit is contained in:
Koos Gadellaa 2022-08-18 08:55:59 +02:00 committed by Josh Cummings
parent 8315545144
commit 5c4362bbc4
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,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);