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
This commit is contained in:
slaws 2009-11-06 17:47:45 +00:00
parent 9fa82ce912
commit 3c0bb267eb

View file

@ -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;
}
});