Skip to content

Commit

Permalink
CAMEL-10894: Improve test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stsiano committed Feb 27, 2017
1 parent ab6f033 commit 9c6a8f6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@ protected SchemaFactory createSchemaFactory() {
if (getResourceResolver() != null) {
factory.setResourceResolver(getResourceResolver());
}
if (camelContext != null && !Boolean.parseBoolean(camelContext.getGlobalOptions().get(ACCESS_EXTERNAL_DTD))) {
if (camelContext == null || !Boolean.parseBoolean(camelContext.getGlobalOptions().get(ACCESS_EXTERNAL_DTD))) {
try {
factory.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
} catch (SAXException e) {
Expand Down

0 comments on commit 9c6a8f6

Please sign in to comment.