RFR: 8377167: javax/imageio/ReadAbortTest.java throw NPE when x11 unavailable

Phil Race prr at openjdk.org
Wed Feb 4 16:20:35 UTC 2026


On Wed, 4 Feb 2026 14:02:51 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> Test javax/imageio/ReadAbortTest.java and javax/imageio/WriteAbortTest.java throw java.lang.NullPointerException when x11 display unavailable, because object `path` unable to initial. This PR check the `path` is null or not before use it, this will make test failure report friendly when x11 display unavailable but DISPLAY was seted.
> 
> Change has been verified locally on linux-x64.

This does not make one bit of sense. These tests do nothing with DISPLAY. They do not start AWT.

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

PR Comment: https://git.openjdk.org/jdk/pull/29569#issuecomment-3848393987


More information about the client-libs-dev mailing list