mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Merge pull request #894 from apache/WW-5364-npe
WW-5364 Fix potential NPE in XmlDocConfigurationProvider
This commit is contained in:
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user