On Wed, 26 Nov 2025 11:39:28 GMT, Lukasz Kostyra <[email protected]> wrote:
> This PR solves potential NPE in `D3DResourceFactory.createPresentable`. > > The mistake was quite obvious, creating an RTT can potentially return `null` > due to lack of resources available in the system. If that happens while dirty > opts are enabled, `rtt` would be dereferenced by calling > `rtt.contentsUseful()`. > > The fix is to move the check to after we check if `rtt` is null. This pull request has now been integrated. Changeset: a39a1da8 Author: Lukasz Kostyra <[email protected]> URL: https://git.openjdk.org/jfx/commit/a39a1da82f3214a2d42912b5a1a21dc743e452dc Stats: 10 lines in 1 file changed: 5 ins; 5 del; 0 mod 8372275: NPE in D3DResourceFactory.createPresentable Reviewed-by: mstrauss, kcr, jdv ------------- PR: https://git.openjdk.org/jfx/pull/1987
