You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/11/04 17:58:44 UTC
[camel] branch master updated: Fixed xml converters to work with
camel-saxon as saxon Source is its own Source.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new bab3e6c Fixed xml converters to work with camel-saxon as saxon Source is its own Source.
bab3e6c is described below
commit bab3e6c9162e939e076320f2d2f3e3bdad4f4675
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Nov 4 18:49:13 2020 +0100
Fixed xml converters to work with camel-saxon as saxon Source is its own Source.
---
.../src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java b/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
index 8cee45b..b64cb2c 100644
--- a/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
+++ b/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java
@@ -746,7 +746,11 @@ public class XmlConverter {
public Document toDOMDocument(Source source)
throws TransformerException, ParserConfigurationException, IOException, SAXException {
Node node = toDOMNode(source);
- return toDOMDocument(node);
+ if (node != null) {
+ return toDOMDocument(node);
+ } else {
+ return null;
+ }
}
/**