camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject [1/2] camel git commit: CAMEL-10894 Fixed test failure
Date Mon, 27 Feb 2017 07:05:43 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x 9f7376abb -> ec3d0db81


CAMEL-10894 Fixed test failure


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/87c92b7b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/87c92b7b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/87c92b7b

Branch: refs/heads/camel-2.18.x
Commit: 87c92b7b38890c217bc76f2c55036e6a5cca9a07
Parents: 9f7376a
Author: Tomohisa Igarashi <tm.igarashi@gmail.com>
Authored: Sat Feb 25 16:59:31 2017 +0900
Committer: Stephan Siano <stephan.siano@sap.com>
Committed: Mon Feb 27 08:01:34 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/processor/validation/SchemaReader.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/87c92b7b/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
b/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
index 69e9afc..65719fa 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaReader.java
@@ -173,7 +173,7 @@ public class SchemaReader {
         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) {


Mime
View raw message