diff options
author | Anastasia Smirnova <anasmi@utu.fi> | 2018-09-07 11:39:48 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-09-07 11:39:48 +0300 |
commit | 77a921791a318c60d25f5bb19823d8c2850732b0 (patch) | |
tree | 0b9333626ae5b92b59700063f2d1d3aac5455888 /client/src/main | |
parent | a3769ed12ee1456575ef491d59031c36243495b3 (diff) | |
download | vaadin-framework-77a921791a318c60d25f5bb19823d8c2850732b0.tar.gz vaadin-framework-77a921791a318c60d25f5bb19823d8c2850732b0.zip |
Ensure that HeaderRow is not null in Grid (#11165)
Ensure that HeaderRow is not null in Grid
Fixes #10485
Diffstat (limited to 'client/src/main')
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index fd32ca8243..e382d2a4f1 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -3411,6 +3411,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, // Make SelectAllCheckbox visible getSelectionColumn().ifPresent(col -> { + if (getDefaultHeaderRow() == null) + return; HeaderCell headerCell = getDefaultHeaderRow().getCell(col); if (headerCell.getType().equals(GridStaticCellType.WIDGET)) { // SelectAllCheckbox is present already |