RFR: 8377167: javax/imageio/ReadAbortTest.java throw NPE when x11 unavailable
Phil Race
prr at openjdk.org
Wed Feb 4 21:21:28 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.
I see. An odd case.
-------------
Marked as reviewed by prr (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29569#pullrequestreview-3753355754
More information about the client-libs-dev
mailing list