You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/03 12:05:52 UTC
cvs commit: ws-axis/java/src/org/apache/axis/wsdl/symbolTable Utils.java
dims 2005/02/03 03:05:52
Modified: java/src/org/apache/axis/wsdl/symbolTable Utils.java
Log:
make sure there is something left in the local part
Revision Changes Path
1.43 +1 -1 ws-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java
Index: Utils.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- Utils.java 9 Dec 2004 22:30:00 -0000 1.42
+++ Utils.java 3 Feb 2005 11:05:52 -0000 1.43
@@ -752,7 +752,7 @@
public static String getLastLocalPart(String localPart) {
int anonymousDelimitorIndex = localPart.lastIndexOf('>');
- if (anonymousDelimitorIndex > -1) {
+ if (anonymousDelimitorIndex > -1 && anonymousDelimitorIndex < localPart.length()-1) {
localPart = localPart.substring(anonymousDelimitorIndex + 1);
}
return localPart;