myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r600335 - /myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java
Date Sun, 02 Dec 2007 16:56:52 GMT
Author: baranda
Date: Sun Dec  2 08:56:51 2007
New Revision: 600335

URL: http://svn.apache.org/viewvc?rev=600335&view=rev
Log:
Fixes MYFACES-1780 (EL Expressions that evaluate to a null property (without base) make the
application fail)

Modified:
    myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java

Modified: myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java?rev=600335&r1=600334&r2=600335&view=diff
==============================================================================
--- myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java
(original)
+++ myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java
Sun Dec  2 08:56:51 2007
@@ -72,10 +72,11 @@
         
         if (base != null) return null;
         if (property == null) throw new PropertyNotFoundException();
-        
+
+        context.setPropertyResolved(true);
+
         Map scopedMap = findScopedMap(externalContext(context), property);
         if (scopedMap != null) {
-            context.setPropertyResolved(true);
             return scopedMap.get(property);
         }
         



Mime
View raw message