jabref: dragging files and folders on entry generates exception
JabRef 5.2–2020-11-03–b5bcea4 Linux 5.8.17-200.fc32.x86_64 amd64 Java 15.0.1
Upon dragging a pdf (without write file permissions) on an entry, I got this exception.
Log File
java.lang.NullPointerException: Cannot read field "dragboard" because "this.this$0.dndGesture" is null
at org.jabref.merged.module@5.2.214/javafx.scene.Scene$DropTargetListener.drop(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.lambda$handleDragDrop$2(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.handleDragDrop(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleDragDrop$11(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleDragDrop(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.glass.ui.View.handleDragDrop(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.glass.ui.View.notifyDragDrop(Unknown Source)
at org.jabref.merged.module@5.2.214/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at org.jabref.merged.module@5.2.214/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 30 (8 by maintainers)
I was facing the same problem for an entirely different project using Fedora Linux 36 and drag and drop events. After a lengthy Reddit discussion, Nir Lisker got this issue reopened. It is still present in JavaFX 19 and below. Hopefully it will gain some traction.
It seems like they recognized that this bug is still occuring under linux https://bugs.openjdk.java.net/browse/JDK-8275033
Might be fixed by the newer javafx version, but we are currently blocked by a third party component and cannot upgrade
It’s always the same error, so no need to report it everytime, but I fear it’s somehow related to javafx. I am not sure if we can do anything about this atm. Coul you please give some more information about your GUI toolkit? KDE? GTK? Gnome? There was a similar thing in OSX which got fixed in the latest javafx application.