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

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

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

Modified: 
incubator/servicemix/branches/servicemix-3.0/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.0/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java?view=diff&rev=448329&r1=448328&r2=448329
==============================================================================
--- 
incubator/servicemix/branches/servicemix-3.0/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java
 (original)
+++ 
incubator/servicemix/branches/servicemix-3.0/servicemix-core/src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java
 Wed Sep 20 13:29:13 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);
     }
 
 


Reply via email to