click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r760932 - /incubator/click/trunk/click/framework/src/org/apache/click/Page.java
Date Wed, 01 Apr 2009 15:47:32 GMT
Author: sabob
Date: Wed Apr  1 15:47:32 2009
New Revision: 760932

URL: http://svn.apache.org/viewvc?rev=760932&view=rev
Log:
fixed possible IndexOutOfBounds exception

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/Page.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/Page.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/Page.java?rev=760932&r1=760931&r2=760932&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/Page.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/Page.java Wed Apr  1 15:47:32
2009
@@ -26,7 +26,6 @@
 
 import org.apache.click.element.Element;
 import org.apache.click.util.Format;
-import org.apache.click.util.HtmlStringBuffer;
 import org.apache.click.util.MessagesMap;
 import org.apache.click.util.PageImports;
 
@@ -1098,7 +1097,7 @@
      * @param location the path to redirect the request to
      */
     public void setRedirect(String location) {
-        if (location != null) {
+        if (StringUtils.isNotBlank(location)) {
             if (location.charAt(0) == '/') {
                 Context context = getContext();
                 String contextPath = context.getRequest().getContextPath();



Mime
View raw message