NPE in Scene.ClickGenerator::preProcess when mouse button is none

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx26
    • Component/s: javafx
    • None
    • In Review
    • os_x

      I observed the following exception in some user error logs of our application:

      java.lang.NullPointerException:
          at javafx.scene.Scene$ClickGenerator.preProcess(Scene.java:3721)
          at javafx.scene.Scene$MouseHandler.process(Scene.java:4042)
          at javafx.scene.Scene.processMouseEvent(Scene.java:1947)
          at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2784)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.get(GlassViewEventHandler.java:353)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.get(GlassViewEventHandler.java:255)
          at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:429)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:387)
          at com.sun.glass.ui.View.handleMouseEvent(View.java:573)
          at com.sun.glass.ui.View.notifyMouse(View.java:975)
          at com.sun.glass.ui.mac.MacView.notifyMouse(MacView.java:131)

      The OS was macOS 26.1. I was not able to reproduce this yet, but I don't have a complex mouse with a lot of fancy buttons. If anyone has a mouse with many buttons, feel free to see if something happens in a JavaFX application when pressing them. I don't know how the mouse button can be NONE when arriving at that state.

      The fix is straightforward and should not have any negative impacts.

            Assignee:
            Christopher Schnick
            Reporter:
            Christopher Schnick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: