]> source.dussan.org Git - vaadin-framework.git/commit
Fix NPE when detaching DragSource & DropTarget on client side (#9341)
authorPekka Hyvönen <pekka@vaadin.com>
Wed, 17 May 2017 12:59:15 +0000 (15:59 +0300)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 12:59:15 +0000 (15:59 +0300)
commit431debc477bc669a0a6c491e62ee7174ae883fd0
treec97fa60a5f70e8b9ffe4715308f263c241b67ef1
parent56546862721e2ab0482e9c23f679b5eee590c36a
Fix NPE when detaching DragSource & DropTarget on client side (#9341)

When the component the extensions have been attached to are removed, there was an NPE due to getParent() not being available anymore. Fixed by not doing clean up on those cases as it is not necessary.

Fixes #9101

* Add back missing detach call
client/src/main/java/com/vaadin/client/connectors/grid/GridDragSourceConnector.java
client/src/main/java/com/vaadin/client/extensions/DragSourceExtensionConnector.java
client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java
uitest/src/main/java/com/vaadin/tests/dnd/DragSourcesInTabSheet.java [new file with mode: 0644]