Browse Source

Removal of data communicator needs to happen before call to super.remove() (#11710)

Removal of data communicator needs to happen before call to super.remove() since super.remove() sets parent to null causing the NPE.

Fixes https://github.com/vaadin/framework/issues/11617
tags/8.10.0.alpha1
Tatu Lund 4 years ago
parent
commit
b379d6bb2c

+ 2
- 2
server/src/main/java/com/vaadin/ui/components/grid/GridDragSource.java View File

@@ -256,10 +256,10 @@ public class GridDragSource<T> extends DragSourceExtension<Grid<T>> {

@Override
public void remove() {
super.remove();

getParent().getDataCommunicator()
.removeDataGenerator(dragDataGenerator);

super.remove();
}

@Override

Loading…
Cancel
Save