Author: remm
Date: Mon Sep 18 10:06:57 2006
New Revision: 447473

URL: http://svn.apache.org/viewvc?view=rev&rev=447473
Log:
- For whatever reason, getValue is different, and must return null if the index 
given is totally bogus.

Modified:
    tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java

Modified: tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java?view=diff&rev=447473&r1=447472&r2=447473
==============================================================================
--- tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java (original)
+++ tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java Mon Sep 18 10:06:57 
2006
@@ -42,8 +42,11 @@
                if (base != null && base.getClass().isArray()) {
                        context.setPropertyResolved(true);
                        int idx = coerce(property);
-                       checkBounds(base, idx);
-                       return Array.get(base, idx);
+            if (idx < 0 || idx >= Array.getLength(base)) {
+                return null;
+            } else {
+                return Array.get(base, idx);
+            }
                }
 
                return null;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to