RFR: 8375016: Several catch blocks for NullPointerExceptions exist in the codebase

Christopher Schnick duke at openjdk.org
Mon Jan 12 17:38:28 UTC 2026


On Mon, 12 Jan 2026 14:11:48 GMT, Christopher Schnick <duke at openjdk.org> wrote:

> This PR replaces various catch blocks for NPEs by proper null checks. It looks like a lot but most of the binding changes are just variants of the same approach. The test cases have been adapted to not check for NPEs anymore.
> 
> The PrismFontFactory change to a RuntimeException was made because I don't see how the try block can throw an NPE.

If I convert this to a draft, does that break anything?

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

PR Comment: https://git.openjdk.org/jfx/pull/2032#issuecomment-3739696690


More information about the openjfx-dev mailing list