You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/10/20 16:27:52 UTC

svn commit: r1025599 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Author: lofwyr
Date: Wed Oct 20 14:27:52 2010
New Revision: 1025599

URL: http://svn.apache.org/viewvc?rev=1025599&view=rev
Log:
prevent ParseExceptions

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?rev=1025599&r1=1025598&r2=1025599&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java Wed Oct 20 14:27:52 2010
@@ -104,7 +104,7 @@ public class PageRenderer extends PageRe
     String value = null;
     try {
       value = (String) facesContext.getExternalContext().getRequestParameterMap().get(name);
-      if (value != null) {
+      if (StringUtils.isNotBlank(value)) {
         StringTokenizer tokenizer = new StringTokenizer(value, ";");
         Measure vertical = Measure.valueOf(tokenizer.nextToken());
         Measure horizontal = Measure.valueOf(tokenizer.nextToken());