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 22c355b commit 99cbcd7
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 (camelContext != null && !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 99cbcd7

Please # to comment.