Skip to content

Commit

Permalink
Removal of data communicator needs to happen before call to super.rem…
Browse files Browse the repository at this point in the history
…ove() (#11710)

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

Fixes #11617
  • Loading branch information
TatuLund authored and ZheSun88 committed Oct 4, 2019
1 parent a098e58 commit 54ceed9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ public Registration addGridDragEndListener(

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

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

super.remove();
}

@Override
Expand Down

0 comments on commit 54ceed9

Please sign in to comment.