Merge pull request #894 from apache/WW-5364-npe

WW-5364 Fix potential NPE in XmlDocConfigurationProvider
This commit is contained in:
Kusal Kithul-Godage
2024-03-14 15:48:48 +11:00
committed by GitHub
@@ -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 {