You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/06/10 06:26:02 UTC

[royale-asjs] branch develop updated: add null check for #852

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new cb1bf69  add null check for #852
cb1bf69 is described below

commit cb1bf69b431d49722b9c269175d985cf2f27e744
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jun 9 23:25:47 2020 -0700

    add null check for #852
---
 .../src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
index ee5378f..9acf365 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/layouts/AdvancedDataGridLayout.as
@@ -71,7 +71,7 @@ package mx.controls.beads.layouts
             // in the bbmodel, so do all layout based on the bbmodel, not the set
             // of columns that may contain invisible columns
             var bbmodel:ButtonBarModel = header.getBeadByType(ButtonBarModel) as ButtonBarModel;
-            if (bbmodel.dataProvider.length != columnWidths.length)
+            if (bbmodel.dataProvider && (bbmodel.dataProvider.length != columnWidths.length))
             {
                 // probably some grouped columns so recompute widths;
                 var newColumnWidths:Array = [];