diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-31 11:45:29 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-31 11:45:29 +0000 |
commit | ae00b1ad865787922f3957fe7c2890a743dda518 (patch) | |
tree | d5c6bc9dbafb001feb08435d7aa36c769a306fbc /java/sca | |
parent | cc2d0460bff418b6f822a0419d0a562cb785b85b (diff) |
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
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositePolicyBuilderImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |