diff --git a/core/src/main/java/com/opensymphony/xwork2/config/providers/XmlDocConfigurationProvider.java b/core/src/main/java/com/opensymphony/xwork2/config/providers/XmlDocConfigurationProvider.java index bae553789..cad52fb79 100644 --- a/core/src/main/java/com/opensymphony/xwork2/config/providers/XmlDocConfigurationProvider.java +++ b/core/src/main/java/com/opensymphony/xwork2/config/providers/XmlDocConfigurationProvider.java @@ -142,7 +142,9 @@ public abstract class XmlDocConfigurationProvider implements ConfigurationProvid @Override public void destroy() { - providerAllowlist.clearAllowlist(this); + if (providerAllowlist != null) { + providerAllowlist.clearAllowlist(this); + } } protected Class allowAndLoadClass(String className) throws ClassNotFoundException {