flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkess...@apache.org
Subject git commit: [flex-sdk] - FLEX-28883: Added dataProvider existance and length check before applying a default selectedIndex.
Date Thu, 18 Apr 2013 01:55:47 GMT
Updated Branches:
  refs/heads/develop c858daafb -> 56cff181d


FLEX-28883: Added dataProvider existance and length check before applying a default selectedIndex.


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

Branch: refs/heads/develop
Commit: 56cff181d719f49ca5359be835e600b3704181bd
Parents: c858daa
Author: Mark Kessler <KesslerConsulting@gmail.com>
Authored: Wed Apr 17 21:50:21 2013 -0400
Committer: Mark Kessler <KesslerConsulting@gmail.com>
Committed: Wed Apr 17 21:55:17 2013 -0400

----------------------------------------------------------------------
 .../spark/components/supportClasses/ListBase.as    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/56cff181/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
index 74d0d73..ac85f89 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -1497,7 +1497,7 @@ public class ListBase extends SkinnableDataContainer
      */
     mx_internal function dataProviderRefreshed():void
     {
-        if (requireSelection == true)
+        if (dataProvider && dataProvider.length > 0 && requireSelection
== true)
         {
             setSelectedIndex(0, false);
         }


Mime
View raw message