You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/04/01 17:51:24 UTC

svn commit: r760936 - /incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java

Author: sabob
Date: Wed Apr  1 15:51:23 2009
New Revision: 760936

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

Modified:
    incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java

Modified: incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java?rev=760936&r1=760935&r2=760936&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java (original)
+++ incubator/click/branches/click-2.0.x/framework/src/org/apache/click/Page.java Wed Apr  1 15:51:23 2009
@@ -983,7 +983,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();