Integrated: JDK-8323617 : Add missing null checks to GetMousePositionWithPopup.java test

Harshitha Onkar honkar at openjdk.org
Fri Jan 12 19:24:28 UTC 2024


On Thu, 11 Jan 2024 20:04:56 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> While investigating a macOS 14 issue noticed missing null checks in java/awt/Mouse/GetMousePositionTest/GetMousePositionWithPopup.java
> 
> The missing null check will cause an NPE in finally block when frame2 is not created in the event that mouse move is not received.
> 
> PS: This test passes on the latest version of macOS (14.2)

This pull request has now been integrated.

Changeset: c54bca6f
Author:    Harshitha Onkar <honkar at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c54bca6f7f5a7e4f47e804608e7ea370dcc32897
Stats:     8 lines in 1 file changed: 4 ins; 0 del; 4 mod

8323617: Add missing null checks to GetMousePositionWithPopup.java test

Reviewed-by: serb, aivanov, dnguyen

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

PR: https://git.openjdk.org/jdk/pull/17380


More information about the client-libs-dev mailing list