This fixes a corner case (although the corner repeats in a number of 
locations), whereby a specified NPE for null parameters doesn't happen because 
code that would throw is not reached when width or height is zero.
No existing tests fail, and the new jtreg test passes whereas it fails without 
this fix.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8390320

Changes: https://git.openjdk.org/jdk/pull/33042/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33042&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8390320
  Stats: 266 lines in 4 files changed: 265 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/33042.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33042/head:pull/33042

PR: https://git.openjdk.org/jdk/pull/33042

Reply via email to