You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ch...@apache.org on 2015/06/12 08:48:27 UTC

git commit: [flex-sdk] [refs/heads/develop] - FLEX-34727 items array in CollectionEvent now has 0 items when refresh or reset

Repository: flex-sdk
Updated Branches:
  refs/heads/develop e7b0d1aff -> 0df1c3623


FLEX-34727 items array in CollectionEvent now has 0 items when refresh or reset


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/0df1c362
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/0df1c362
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/0df1c362

Branch: refs/heads/develop
Commit: 0df1c3623bbcd45c9d1081e87eb293e9436b19a3
Parents: e7b0d1a
Author: chrsmrtn <ch...@apache.org>
Authored: Thu Jun 11 23:47:24 2015 -0700
Committer: chrsmrtn <ch...@apache.org>
Committed: Thu Jun 11 23:47:24 2015 -0700

----------------------------------------------------------------------
 frameworks/projects/framework/src/mx/collections/ArrayList.as | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/0df1c362/frameworks/projects/framework/src/mx/collections/ArrayList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/collections/ArrayList.as b/frameworks/projects/framework/src/mx/collections/ArrayList.as
index 4d93c17..c1346b9 100644
--- a/frameworks/projects/framework/src/mx/collections/ArrayList.as
+++ b/frameworks/projects/framework/src/mx/collections/ArrayList.as
@@ -752,7 +752,8 @@ public class ArrayList extends EventDispatcher
                 var event:CollectionEvent =
                     new CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
                 event.kind = kind;
-                event.items.push(item);
+				if(item != null)
+				    event.items.push(item);
                 event.location = location;
                 dispatchEvent(event);
             }