tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottk...@apache.org
Subject svn commit: r1101170 - /tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java
Date Mon, 09 May 2011 19:49:09 GMT
Author: scottkurz
Date: Mon May  9 19:49:09 2011
New Revision: 1101170

URL: http://svn.apache.org/viewvc?rev=1101170&view=rev
Log:
Tweak null boundary condition handling for DOM databinding transform path.

Modified:
    tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java

Modified: tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java?rev=1101170&r1=1101169&r2=1101170&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamReader2Node.java
Mon May  9 19:49:09 2011
@@ -48,6 +48,9 @@ public class XMLStreamReader2Node extend
 
     public Node transform(XMLStreamReader source, TransformationContext context) {
         try {
+            if (source == null) {
+                return null;
+            }
             DataPipe<ContentHandler, Node> pipe = sax2domPipe.newInstance();
             stax2sax.transform(source, pipe.getSink(), context);
             Node node = pipe.getResult();



Mime
View raw message