summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/policy/src
diff options
context:
space:
mode:
authorbeckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68>2008-10-08 21:31:05 +0000
committerbeckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68>2008-10-08 21:31:05 +0000
commitdf5a712c838f31ccee892414fd12b965cc613590 (patch)
treec98c0aa6346f620a30ff8bc11eda6c467c3ecded /java/sca/modules/policy/src
parentad36417ac55baa99904c7a23be9832de9c10a038 (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')
-rw-r--r--java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/ImplementationTypeImpl.java2
-rw-r--r--java/sca/modules/policy/src/main/java/org/apache/tuscany/sca/policy/impl/PolicySetImpl.java2
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() {