On Wed, 23 Sep 2026 19:59:10 GMT, Phil Race <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: 3de6ff76
Author:    Phil Race <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/3de6ff76dc94464aa35983671f5d01ea11990e06
Stats:     266 lines in 4 files changed: 265 ins; 0 del; 1 mod

8390320: SampleModel.setDataElements fails to throw NPE for null arguments with 
zero dimensions

Reviewed-by: kizune, psadhukhan

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

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

Reply via email to