diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-02 12:44:06 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-02 12:44:06 +0000 |
commit | 625d4d1ddde08c8dd90464e7b2148b77d0a1654a (patch) | |
tree | a103b6b004086e00407b4b153687fedbdf3c7e44 /java/sca/modules/binding-jms-runtime/src | |
parent | e5dcdcc839e636cdc88ce8d4d5c41c183a73f56b (diff) |
Try to avoid an NPE in JMS binding when the refernce interface contarct is null
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@691217 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-jms-runtime/src')
-rw-r--r-- | java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java index b5138eb51d..020829def6 100644 --- a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java +++ b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java @@ -90,7 +90,11 @@ public class JMSBindingReferenceBindingProvider implements ReferenceBindingProvi } public InterfaceContract getBindingInterfaceContract() { - return reference.getInterfaceContract(); + if (reference.getInterfaceContract() == null) { + return reference.getReference().getInterfaceContract(); + } else { + return reference.getInterfaceContract(); + } } public void start() { |