From 2ee92a412cc393b38fbd8dc9241909f7e71100f4 Mon Sep 17 00:00:00 2001 From: vamsic007 Date: Wed, 26 Nov 2008 13:17:00 +0000 Subject: Check if the binding object is null. Does getting a null binding object here mean there is a problem else where?? git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@720841 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'branches/sca-java-1.x/modules/assembly') diff --git a/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java b/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java index 6f856986ad..84a9c648b6 100644 --- a/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java +++ b/branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java @@ -1084,6 +1084,10 @@ public abstract class BaseConfigurationBuilderImpl { * @param binding */ private void constructBindingName(Contract contract, Binding binding) { + if(binding == null) { + warning("Binding is null", binding, contract.getName()); + return; + } // set the default binding name if one is required // if there is no name on the binding then set it to the service or reference name -- cgit v1.2.3