diff options
-rw-r--r-- | java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/RuntimeSCAReferenceBindingProvider.java | 2 |
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: " |