mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Merge pull request #491 from containerAnalyzer/master
Fix NPE in XmlConfigurationProvider.java
This commit is contained in:
+6
-2
@@ -1076,8 +1076,12 @@ public abstract class XmlConfigurationProvider implements ConfigurationProvider
|
||||
InputSource in = new InputSource(is);
|
||||
|
||||
in.setSystemId(url.toString());
|
||||
|
||||
docs.add(DomHelper.parse(in, dtdMappings));
|
||||
|
||||
Document helperDoc = DomHelper.parse(in, dtdMappings);
|
||||
if (helperDoc != null) {
|
||||
docs.add(helperDoc);
|
||||
}
|
||||
|
||||
loadedFileUrls.add(url.toString());
|
||||
} catch (StrutsException e) {
|
||||
if (includeElement != null) {
|
||||
|
||||
Reference in New Issue
Block a user