summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-11-06 17:47:45 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-11-06 17:47:45 +0000
commit3c0bb267eb06174bcecef406fc8891f8a8c866b8 (patch)
tree70587eefcab9c29c00a04ee8a176d77682d7b8da /java
parent9fa82ce912dd449033863536d5132c6ccc6abaab (diff)
Fix for ASM-12012. If there is nothing stored in the monitor artifact name then use the artifact name passed in as a parameter
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java b/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java
index bd5731c594..6de25d4eeb 100644
--- a/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java
+++ b/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/processor/ValidatingXMLStreamReader.java
@@ -118,10 +118,13 @@ class ValidatingXMLStreamReader extends StreamReaderDelegate implements XMLStrea
}
private String getArtifactName( String input ) {
- String artifactName = input;
+ String artifactName = null;
if( ValidatingXMLStreamReader.this.monitor != null ) {
artifactName = ValidatingXMLStreamReader.this.monitor.getArtifactName();
}
+ if (artifactName == null){
+ artifactName = input;
+ }
return artifactName;
}
});