You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ri...@apache.org on 2007/01/18 22:48:20 UTC

svn commit: r497590 - /incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java

Author: rineholt
Date: Thu Jan 18 13:48:19 2007
New Revision: 497590

URL: http://svn.apache.org/viewvc?view=rev&rev=497590
Log:
Only set up interceptor if there is a match

Modified:
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java?view=diff&rev=497590&r1=497589&r2=497590
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/databinding/impl/PassByValueWirePostProcessor.java Thu Jan 18 13:48:19 2007
@@ -80,19 +80,20 @@
                 targetOperation = entry.getKey();
                 sourceOperation =
                     getSourceOperation(source.getInvocationChains().keySet(), targetOperation.getName());
+                
 
-                argsDataBindings = resolveArgsDataBindings(targetOperation);
-                resultDataBinding = resolveResultDataBinding(targetOperation);
-
-                passByValueInterceptor = new PassByValueInterceptor();
-                passByValueInterceptor.setDataBinding(getDataBinding(targetOperation));
-                passByValueInterceptor.setArgsDataBindings(argsDataBindings);
-                passByValueInterceptor.setResultDataBinding(resultDataBinding);
-
-                entry.getValue().addInterceptor(0, passByValueInterceptor);
-                tailInterceptor = source.getInvocationChains().get(sourceOperation).getTailInterceptor();
-                if (tailInterceptor != null) {
-                    tailInterceptor.setNext(passByValueInterceptor);
+                if (null != sourceOperation) {
+                    argsDataBindings = resolveArgsDataBindings(targetOperation);
+                    resultDataBinding = resolveResultDataBinding(targetOperation);
+                    passByValueInterceptor = new PassByValueInterceptor();
+                    passByValueInterceptor.setDataBinding(getDataBinding(targetOperation));
+                    passByValueInterceptor.setArgsDataBindings(argsDataBindings);
+                    passByValueInterceptor.setResultDataBinding(resultDataBinding);
+                    entry.getValue().addInterceptor(0, passByValueInterceptor);
+                    tailInterceptor = source.getInvocationChains().get(sourceOperation).getTailInterceptor();
+                    if (tailInterceptor != null) {
+                        tailInterceptor.setNext(passByValueInterceptor);
+                    }
                 }
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org