You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ba...@apache.org on 2007/12/02 17:56:52 UTC

svn commit: r600335 - /myfaces/core/trunk_1.2.x/impl/src/main/java/org/apache/myfaces/el/unified/resolver/ScopedAttributeResolver.java

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);
         }