diff options
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.6.1/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java b/sca-java-1.x/branches/sca-java-1.6.1/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java index 79c442450b..61e2751a8a 100644 --- a/sca-java-1.x/branches/sca-java-1.6.1/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java +++ b/sca-java-1.x/branches/sca-java-1.6.1/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java @@ -87,7 +87,9 @@ public class DataTransformationInterceptor implements Interceptor, DataExchangeS } else { assert !(result instanceof Throwable) : "Expected messages that are not throwable " + result; Object newResult = mediator.mediateOutput(result, sourceOperation, targetOperation, metadata); - resultMsg.setBody(newResult); + if (newResult != result) { + resultMsg.setBody(newResult); + } } return resultMsg; |