[seam-commits] Seam SVN: r15394 - branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/faces.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jan 17 07:35:32 EST 2013


Author: manaRH
Date: 2013-01-17 07:35:32 -0500 (Thu, 17 Jan 2013)
New Revision: 15394

Modified:
   branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java
Log:
JBSEAM-5061 added check for empty parameter value

Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java	2013-01-17 12:35:23 UTC (rev 15393)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/faces/FacesManager.java	2013-01-17 12:35:32 UTC (rev 15394)
@@ -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);
       }



More information about the seam-commits mailing list