You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/09/20 22:29:45 UTC

svn commit: r448330 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java

Author: gnodet
Date: Wed Sep 20 13:29:44 2006
New Revision: 448330

URL: http://svn.apache.org/viewvc?view=rev&rev=448330
Log:
SM-589: The SourceTransformer should not log a warning when calling toResult with a null Source

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java?view=diff&rev=448330&r1=448329&r2=448330
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java Wed Sep 20 13:29:44 2006
@@ -78,16 +78,14 @@
      * Converts the given input Source into the required result
      */
     public void toResult(Source source, Result result) throws TransformerException {
+        if (source == null) {
+            return;
+        }
         Transformer transformer = createTransfomer();
         if (transformer == null) {
             throw new TransformerException("Could not create a transformer - JAXP is misconfigured!");
         }
-        if (source != null) {
-            transformer.transform(source, result);
-        }
-        else {
-            log.warn("No Source available");
-        }
+        transformer.transform(source, result);
     }