aboutsummaryrefslogtreecommitdiffstats
path: root/client/src/main
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2018-09-07 11:39:48 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-09-07 11:39:48 +0300
commit77a921791a318c60d25f5bb19823d8c2850732b0 (patch)
tree0b9333626ae5b92b59700063f2d1d3aac5455888 /client/src/main
parenta3769ed12ee1456575ef491d59031c36243495b3 (diff)
downloadvaadin-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-xclient/src/main/java/com/vaadin/client/widgets/Grid.java2
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