summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/assembly
diff options
context:
space:
mode:
authorvamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2008-11-26 13:17:00 +0000
committervamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68>2008-11-26 13:17:00 +0000
commit2ee92a412cc393b38fbd8dc9241909f7e71100f4 (patch)
treeda752945cefb6e3dabefb2f020aa77ea81f6f8f9 /branches/sca-java-1.x/modules/assembly
parent7ac90896b8149bb6ba09a5f631c7213af191d65f (diff)
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
Diffstat (limited to 'branches/sca-java-1.x/modules/assembly')
-rw-r--r--branches/sca-java-1.x/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseConfigurationBuilderImpl.java4
1 files changed, 4 insertions, 0 deletions
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