diff options
author | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-08 21:31:05 +0000 |
---|---|---|
committer | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-08 21:31:05 +0000 |
commit | df5a712c838f31ccee892414fd12b965cc613590 (patch) | |
tree | c98c0aa6346f620a30ff8bc11eda6c467c3ecded /java/sca/modules/policy/src | |
parent | ad36417ac55baa99904c7a23be9832de9c10a038 (diff) |
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@702995 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/policy/src')
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java b/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java index fa95d84c4e..7861fd79f9 100644 --- a/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java +++ b/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java @@ -83,6 +83,6 @@ public class ImplementationTypeImpl implements IntentAttachPointType { @Override
public String toString() {
- return getName().toString();
+ return ( this.typeName != null ) ? getName().toString() : "null";
}
}
diff --git a/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java b/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java index 4bd9d5b7c7..179a10cc1a 100644 --- a/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java +++ b/java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java @@ -127,7 +127,7 @@ public class PolicySetImpl implements PolicySet { @Override public String toString() { - return getName().toString(); + return ( this.name != null ) ? getName().toString() : "null"; } public XPathExpression getAppliesToXPathExpression() { |