Skip to content

Commit

Permalink
Merge pull request #894 from apache/WW-5364-npe
Browse files Browse the repository at this point in the history
WW-5364 Fix potential NPE in XmlDocConfigurationProvider
  • Loading branch information
kusalk authored Mar 14, 2024
2 parents e08f637 + 29422e4 commit 86aee4b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ private void registerAllowlist() {

@Override
public void destroy() {
providerAllowlist.clearAllowlist(this);
if (providerAllowlist != null) {
providerAllowlist.clearAllowlist(this);
}
}

protected Class<?> allowAndLoadClass(String className) throws ClassNotFoundException {
Expand Down

0 comments on commit 86aee4b

Please sign in to comment.