RFR: 8375070: NPE in Scene.ClickGenerator::preProcess when mouse button is none [v3]
Christopher Schnick
duke at openjdk.org
Tue Jan 13 18:12:30 UTC 2026
On Tue, 13 Jan 2026 16:23:41 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> About why this is happening, I saw a reference to JDK-8110944 in the mouse button handling code for the NONE type but the issue is not found for me. Is the bug ID wrong or is that a restricted issue?
>
> https://bugs.openjdk.org/browse/JDK-8110944 is public now.
I think the null check is in line with the rest of the method as it checks for cc != null later down for other types of events. I think instantly returning would not reset the click counters, which is also probably not the best solution. This null check is the most minimally invasive solution I can see.
About why this happening, I guess that is a different thing to figure out. Looking at the related issue, it seems like a parent window can receive events from other windows under certain conditions. Maybe if you manage to click the split second a popup is shown / hidden, it can happen somehow
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2034#discussion_r2687518497
More information about the openjfx-dev
mailing list