You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2006/10/13 11:29:17 UTC

svn commit: r463607 - /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java

Author: jcompagner
Date: Fri Oct 13 02:29:15 2006
New Revision: 463607

URL: http://svn.apache.org/viewvc?view=rev&rev=463607
Log:
from 1.x

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java?view=diff&rev=463607&r1=463606&r2=463607
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Request.java Fri Oct 13 02:29:15 2006
@@ -158,7 +158,18 @@
 
 		// decode the request parameters into a strongly typed parameters
 		// object that is to be used by the target resolving
-		requestParameters = encoder.decode(this);
+		try
+		{
+			requestParameters = encoder.decode(this);
+		} 
+		catch(RuntimeException re)
+		{
+			// do set the parameters as it was parsed.
+			// else the error page will also error again (infinite loop)
+			requestParameters = new RequestParameters();
+			throw re;
+		}		
+		
 		if (requestParameters == null)
 		{
 			throw new WicketRuntimeException("request parameters must be not-null (provided by "