Skip to content

Commit

Permalink
CAMEL-10894 Fixed test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
igarashitm authored and stsiano committed Feb 27, 2017
1 parent 9f7376a commit 87c92b7
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 (!Boolean.parseBoolean(camelContext.getProperty(ACCESS_EXTERNAL_DTD))) {
if (camelContext != null && !Boolean.parseBoolean(camelContext.getProperty(ACCESS_EXTERNAL_DTD))) {
try {
factory.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
} catch (SAXException e) {
Expand Down

0 comments on commit 87c92b7

Please sign in to comment.