From 4a66d6df2f2e15d356db930d5be594c6fefe78a6 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 24 Aug 2009 15:11:00 +0000 Subject: Guard against NPE git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@807278 13f79535-47bb-0310-9956-ffa450edef68 --- .../builder/impl/ComponentReferenceEndpointReferenceBuilderImpl.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/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; -- cgit v1.2.3