On Fri, 16 Oct 2026 10:38:16 GMT, Matthias Baesken <[email protected]> wrote:

> The gcc static analyzer reports this issue :
> 
> `src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c:181:13: 
> warning: dereference of NULL 'xsdo' [CWE-476] [-Wanalyzer-null-dereference]`
> 
> Seems we should better NULL-check the result of
> `    X11SDOps *xsdo = X11SurfaceData_GetOps(env, this);`
> because the function potentially returns NULL.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/33410#issuecomment-6291529364

Reply via email to