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

pushminakazi 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 30ee218  Added If Columns == null in 
DataGridLinesBeadForICollectionView.as
30ee218 is described below

commit 30ee218c15b9e966e2ec2afa2a26004af1cf50b5
Author: pashminakazi <[email protected]>
AuthorDate: Fri Jun 12 14:54:38 2020 +0500

    Added If Columns == null in DataGridLinesBeadForICollectionView.as
---
 .../mx/controls/beads/DataGridLinesBeadForICollectionView.as      | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridLinesBeadForICollectionView.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridLinesBeadForICollectionView.as
index fc436bc..86d2618 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridLinesBeadForICollectionView.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/DataGridLinesBeadForICollectionView.as
@@ -103,6 +103,9 @@ package mx.controls.beads
             if (contentView.height > n * rowHeight)
             {
                 var ww:Number = 0;
+               if(columns == null){
+                  return;
+               }
                 for (i=0; i < columns.length; i++) {
                     column = columns[i] as DataGridColumn;
                     if (column.visible)
@@ -127,6 +130,9 @@ package mx.controls.beads
             
             _overlay.fill = lineFill;            
             // draw the verticals
+           if(columns == null){
+              return;
+             }
             for (i=0; i < columns.length - 1; i++) {
                 column = columns[i] as DataGridColumn;
                 if (column.visible)
@@ -144,4 +150,4 @@ package mx.controls.beads
         }
 
        }
-}
\ No newline at end of file
+}

Reply via email to