Преглед на файлове

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
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      server/src/main/java/com/vaadin/ui/components/grid/GridDragSource.java

+ 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

Loading…
Отказ
Запис