You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/09/30 21:56:16 UTC

svn commit: r292843 - /beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java

Author: rich
Date: Fri Sep 30 12:56:11 2005
New Revision: 292843

URL: http://svn.apache.org/viewcvs?rev=292843&view=rev
Log:
Fix for http://issues.apache.org/jira/browse/BEEHIVE-958 : StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""

tests: bvt in netui (WinXP)
BB: bvt in netui (linux)


Modified:
    beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java

Modified: beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java?rev=292843&r1=292842&r2=292843&view=diff
==============================================================================
--- beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java (original)
+++ beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/FlowControllerChecker.java Fri Sep 30 12:56:11 2005
@@ -452,7 +452,7 @@
             {
                 String path = ( String ) pathVal.getValue();
                 
-                if ( path.charAt( 0 ) != '/' && ! WebappPathType.relativePathExists( path, jclass, getEnv() ) )
+                if ( path.length() > 0 && path.charAt( 0 ) != '/' && ! WebappPathType.relativePathExists( path, jclass, getEnv() ) )
                 {
                     String[] args = {
                         path,
@@ -485,7 +485,7 @@
             {
                 String path = ( String ) pathVal.getValue();
                 
-                if ( path.charAt( 0 ) != '/' && ! WebappPathType.relativePathExists( path, jclass, getEnv() ) )
+                if ( path.length() > 0 && path.charAt( 0 ) != '/' && ! WebappPathType.relativePathExists( path, jclass, getEnv() ) )
                 {
                     String[] args = {
                         path,