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 committed Feb 25, 2017
1 parent 8afc5d1 commit 2e8f21d
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.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 2e8f21d

Please sign in to comment.