On Thu, 19 Jun 2025 17:00:09 GMT, Phil Race <p...@openjdk.org> wrote:
> And consistency seems the best choice. Then our best choice is not to touch `ImageIcon(Image)` and leave it to throw `NullPointerException`. All the constructors except for `ImageIcon((String) null)` throw `NullPointerException` if the first argument is `null`. Strangely enough, `ImageIcon((String) null)` creates a non-`null` image. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2157454838