summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2018-04-13 18:10:39 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-04-20 15:19:23 +0300
commit8e61228f214d12efb80acfc0336196c2272b84e5 (patch)
tree5e2ea6a4956fdd05ce190a7ab02c8ef2ecb2618f /client
parentfe7ea3f36fb3c7a4e707a1163dcfdb38443e116b (diff)
downloadvaadin-framework-8e61228f214d12efb80acfc0336196c2272b84e5.tar.gz
vaadin-framework-8e61228f214d12efb80acfc0336196c2272b84e5.zip
Add null check to Grid's DnD focus handling (#10822)
Fixes #10699
Diffstat (limited to 'client')
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java2
1 files changed, 1 insertions, 1 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 1f75801c27..12bb50de0f 100755
--- a/client/src/main/java/com/vaadin/client/widgets/Grid.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java
@@ -4597,7 +4597,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
private void transferCellFocusOnDrop() {
final Cell focusedCell = cellFocusHandler.getFocusedCell();
- if (focusedCell != null) {
+ if (focusedCell != null && focusedCell.getElement() != null) {
final int focusedColumnIndexDOM = focusedCell.getColumn();
final int focusedRowIndex = focusedCell.getRow();
final int draggedColumnIndex = eventCell.getColumnIndex();