RFR: 8375070: NPE in Scene.ClickGenerator::preProcess when mouse button is none
Andy Goryachev
angorya at openjdk.org
Mon Jan 12 22:56:07 UTC 2026
On Mon, 12 Jan 2026 22:07:16 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
The danger in such poorly understood cases is the risk of regression. This code was written in 2012 (or probably even earlier) and might have worked fine since then (or might not, it's hard to say).
In order to analyze the change, we do need a reproducible code example or instructions how to reproduce, per
https://bugreport.java.com/bugreport/
[FAQ](https://bugreport.java.com/bugdatabase/faq)
[guide to submitting a bug report](https://docs.oracle.com/en/java/javase/21/troubleshoot/submit-bug-report.html#GUID-0074B0D4-7660-4542-9DD4-8E7C33637474)
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2034#issuecomment-3740874118
More information about the openjfx-dev
mailing list