소스 검색

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…
취소
저장