Переглянути джерело

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 роки тому
джерело
коміт
b379d6bb2c

+ 2
- 2
server/src/main/java/com/vaadin/ui/components/grid/GridDragSource.java Переглянути файл

@@ -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

Завантаження…
Відмінити
Зберегти