RFR: 8375070: NPE in Scene.ClickGenerator::preProcess when mouse button is none [v4]
Christopher Schnick
duke at openjdk.org
Tue Jan 27 13:26:20 UTC 2026
On Tue, 13 Jan 2026 18:04:40 GMT, Christopher Schnick <duke at openjdk.org> wrote:
>> A straightforward fix to just include MouseButton.NONE in the click counter map in cases weird mouse button events are sent. Alternatively, these events could also be ignored/dropped at some point
>
> Christopher Schnick has updated the pull request incrementally with one additional commit since the last revision:
>
> Add test
So this is ready for review now with the test.
I have searched the various error logs that people sent me about unrelated issues, and found that this NPE occured for at least 5 people that reported other issues. All of those were on macOS 26, so something probably changed in the input handling there. Maybe it's a weird edge case or some accessibility thing, but it it definitely occurs somehow.
If someone with macos expertise wants to take a look at the root cause, then this can be fixed in a follow-up issue I guess. There is definitely something wrong in the input handling on macOS 26, I just can't pinpoint it yet
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2034#issuecomment-3805202589
More information about the openjfx-dev
mailing list