diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-21 11:37:46 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-21 11:37:46 +0000 |
commit | 8a3cfda99d2d5863e2e0befdb7de4191c7723bb8 (patch) | |
tree | 3a9a0bfb0545448dab40639919d77e28691a7869 /sca-java-2.x/trunk/modules | |
parent | 6ec76289c69654eb951edcb705fa899fb4e7d065 (diff) |
Fix to invokeAsyncResponse method to cope with a Binding Chain with zero entries
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1051464 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java index 0a1d5b87eb..89d0e444af 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointReferenceImpl.java @@ -257,7 +257,9 @@ public class RuntimeEndpointReferenceImpl extends EndpointReferenceImpl implemen InvocationChain chain = this.getBindingInvocationChain(); if( chain != null ) { Invoker tailInvoker = chain.getTailInvoker(); - ((InvokerAsyncResponse)tailInvoker).invokeAsyncResponse(msg); + if (tailInvoker != null) { + ((InvokerAsyncResponse)tailInvoker).invokeAsyncResponse(msg); + } // end if } // end if chain = this.getInvocationChain(msg.getOperation()); |