From ae00b1ad865787922f3957fe7c2890a743dda518 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 31 Jul 2009 11:45:29 +0000 Subject: Be more defensive in check the implementation reference. Follow the pattern used for services in the same method. Fixes NPE while test ASM_8004. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@799584 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/sca/modules/assembly') diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java index 7e0010c63b..9c7bd6b2d9 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java @@ -351,7 +351,7 @@ public class CompositePolicyBuilderImpl extends BaseBuilderImpl implements Compo for (ComponentReference componentReference : component.getReferences()) { isMutualExclusive(componentReference, componentReference.getReference()); - if (componentReference.getInterfaceContract() != null) { + if (componentReference.getInterfaceContract() != null && componentReference.getReference() != null) { isMutualExclusive(componentReference.getInterfaceContract().getInterface(), componentReference .getReference().getInterfaceContract().getInterface()); isMutualExclusive(componentReference.getInterfaceContract().getCallbackInterface(), -- cgit v1.2.3