axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r496934 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java
Date Wed, 17 Jan 2007 04:25:06 GMT
Author: dims
Date: Tue Jan 16 20:25:06 2007
New Revision: 496934

URL: http://svn.apache.org/viewvc?view=rev&rev=496934
Log:
prevent StringIndexOutOfBounds exception if ';' is not found

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java?view=diff&rev=496934&r1=496933&r2=496934
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/Builder.java Tue
Jan 16 20:25:06 2007
@@ -315,7 +315,7 @@
     public static OMBuilder getBuilderFromSelector(String contentType,
 			InputStream inputStream, MessageContext msgContext) throws AxisFault {
     	int index = contentType.indexOf(';');
-		if (index!= 0)
+		if (index>0)
     	{
     		contentType = contentType.substring(0,index);
     	}



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message