You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/05/13 20:24:25 UTC

svn commit: r537632 - /incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java

Author: almaw
Date: Sun May 13 11:24:24 2007
New Revision: 537632

URL: http://svn.apache.org/viewvc?view=rev&rev=537632
Log:
Fix for uninitialised value in urlDepth

Modified:
    incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java

Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java?view=diff&rev=537632&r1=537631&r2=537632
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/request/WebRequestCodingStrategy.java Sun May 13 11:24:24 2007
@@ -500,7 +500,7 @@
 
 			// Extract URL depth after last colon
 			final String urlDepthString = pathComponents[pathComponents.length - 1];
-			final int urlDepth = Strings.isEmpty(urlDepthString) ? 0 : Integer
+			final int urlDepth = Strings.isEmpty(urlDepthString) ? -1 : Integer
 					.parseInt(urlDepthString);
 			parameters.setUrlDepth(urlDepth);