Author: hadrian
Date: Tue Jun 30 05:11:21 2009
New Revision: 789562

URL: http://svn.apache.org/viewvc?rev=789562&view=rev
Log:
CAMEL-1078.  More changes in preparation of removal of GenericFileExchange.

Modified:
    
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java

Modified: 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java?rev=789562&r1=789561&r2=789562&view=diff
==============================================================================
--- 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
 (original)
+++ 
camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
 Tue Jun 30 05:11:21 2009
@@ -47,7 +47,9 @@
     @SuppressWarnings("unchecked")
     public GenericFileExchange<T> createExchange(GenericFile<T> file) {
         GenericFileExchange<T> answer = new GenericFileExchange<T>(this);
-        answer.setGenericFile(file);
+        if (file != null) {
+            file.bindToExchange(answer);
+        }
         return answer;
     }
 


Reply via email to