diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-24 15:11:00 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-24 15:11:00 +0000 |
commit | 4a66d6df2f2e15d356db930d5be594c6fefe78a6 (patch) | |
tree | f06a6e8f639ce9cb34409ccbda19ea4dfcb546d8 | |
parent | 6842f1c6dcdfdb5da065ab97dfa5cb790c4473db (diff) |
Guard against NPE
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@807278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.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/ComponentReferenceEndpointReferenceBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java index d9d785be1d..a2a10a21f5 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.java @@ -1183,7 +1183,7 @@ public class ComponentReferenceEndpointReferenceBuilderImpl extends BaseBuilderI uri = c + "#service(" + s + ")"; } for (EndpointReference er : reference.getEndpointReferences()) { - if (er.getTargetEndpoint().getURI().equals(uri)) { + if (er.getTargetEndpoint() != null && uri.equals(er.getTargetEndpoint().getURI())) { reference.getEndpointReferences().clear(); reference.getEndpointReferences().add(er); return; |