On Mon, 9 Nov 2026 16:10:33 GMT, Christopher Schnick <[email protected]> 
wrote:

> This PR fixes some rare NPEs I saw some users encounter when a window was 
> hidden. The tests should cover all those potential issues and should fail 
> without this PR and succeed with this PR.
> 
> I originally only wanted to fix the 1. NPE because that actually happened to 
> some users, but during that I realized that the 2. NPE can also be provoked 
> if you write a listener that just hides the window on some window events.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: c6413874
Author:    Christopher Schnick <[email protected]>
Committer: Andy Goryachev <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/c6413874cc60c9ccbcd8914ba18154a96bbf7536
Stats:     172 lines in 3 files changed: 152 ins; 0 del; 20 mod

8396971: NPEs in GlassWindowEventHandler when stage listener is cleared

Reviewed-by: angorya, kcr, mhanl

-------------

PR: https://git.openjdk.org/jfx/pull/2364

Reply via email to