Author: manaRH
Date: 2012-11-28 06:12:35 -0500 (Wed, 28 Nov 2012)
New Revision: 15372
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java
Log:
JBSEAM-5061 added check for empty parameter value
Modified:
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java
===================================================================
---
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java 2012-11-27
22:12:03 UTC (rev 15371)
+++
branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java 2012-11-28
11:12:35 UTC (rev 15372)
@@ -88,8 +88,12 @@
while ( tokens.hasMoreTokens() )
{
String name = tokens.nextToken();
- String value = Interpolator.instance().interpolate( tokens.nextToken() );
- parameters.put(name, value);
+ if (tokens.hasMoreTokens())
+ {
+ String value = Interpolator.instance().interpolate( tokens.nextToken() );
+ parameters.put(name, value);
+ }
+
}
url = url.substring(0, loc);
}
Show replies by date