You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ja...@apache.org on 2010/04/29 19:20:27 UTC

svn commit: r939389 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java

Author: jakobk
Date: Thu Apr 29 17:20:27 2010
New Revision: 939389

URL: http://svn.apache.org/viewvc?rev=939389&view=rev
Log:
MYFACES-2684 UIComponentBase.saveAttachedState save transient elements as null values on List case (small fix, because the code caused a compilation failure)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java?rev=939389&r1=939388&r2=939389&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIComponentBase.java Thu Apr 29 17:20:27 2010
@@ -1431,10 +1431,9 @@ public abstract class UIComponentBase ex
             List<Object> lst = new ArrayList<Object>(((List<?>) attachedObject).size());
             for (Object item : (List<?>) attachedObject)
             {
-                Object value = it.next();
-                if (value != null)
+                if (item != null)
                 {
-                    lst.add(saveAttachedState(context, value));
+                    lst.add(saveAttachedState(context, item));
                 }
             }