RFR: 8275033: Drag and drop a file produces NullPointerException Cannot read field "dragboard"

Kevin Rushforth kcr at openjdk.org
Fri Jan 20 16:09:46 UTC 2023


On Thu, 19 Jan 2023 16:16:18 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:

> When running on Wayland the `GDK_DRAG_LEAVE` is sent just after `GDK_DROP_START`. The leave event causes java to set `dragGesture` to `null`. On Xorg this event is not sent. 
> 
> The fix just ignores the leave event if a drop occurred.

Looks good. I reproduced the bug on Wayland, and can confirm that this fixes the problem

@andy-goryachev-oracle Can you also review this?

-------------

Marked as reviewed by kcr (Lead).

PR: https://git.openjdk.org/jfx/pull/1005


More information about the openjfx-dev mailing list