summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-09-02 12:45:24 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-09-02 12:45:24 +0000
commit847d785a3d14451239ea87c10227cb14c1f81484 (patch)
treeaa6aa186531b0759a3ae2157bbe9fe87e8186268 /java
parent625d4d1ddde08c8dd90464e7b2148b77d0a1654a (diff)
Guard against an NPE when the reference interface contract hasn't been resolved yet
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@691218 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java b/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java
index e3fc31a183..7ec3f2d60a 100644
--- a/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java
+++ b/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java
@@ -125,7 +125,7 @@ public class RuntimeSCAReferenceBindingProvider implements ReferenceBindingProvi
if (isTargetRemote()) {
// initialize the remote provider if it hasn't been done already
if (distributedProvider == null) {
- if (!reference.getInterfaceContract().getInterface().isRemotable()) {
+ if (reference.getInterfaceContract() != null && !reference.getInterfaceContract().getInterface().isRemotable()) {
throw new IllegalStateException("Reference interface not remotable for component: " + component
.getName()
+ " and reference: "