RFR: 8377167: javax/imageio/ReadAbortTest.java throw NPE when x11 unavailable
Sergey Bylokhov
serb at openjdk.org
Wed Feb 4 21:21:29 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.
Marked as reviewed by serb (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/29569#pullrequestreview-3753356913
More information about the client-libs-dev
mailing list