Simple null check fix. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
------------- Commit messages: - Initial Changes: https://git.openjdk.org/jdk/pull/33803/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33803&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8392416 Stats: 89 lines in 2 files changed: 87 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/33803.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33803/head:pull/33803 PR: https://git.openjdk.org/jdk/pull/33803
