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 2c6964a commit 22c355b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 22c355b

Please # to comment.