RFR: 8159055: ImageIcon.setImage can't handle null parameter [v15]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Jul 23 04:02:11 UTC 2025
On Wed, 23 Jul 2025 03:20:57 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/ImageIcon.java line 388:
>>
>>> 386: public void setImage(Image image) {
>>> 387: this.image = image;
>>> 388: if (image == null) {
>>
>> Umm. We had decided (in the end) to document the NPE.
>
> fixed
fixed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2224277117
More information about the client-libs-dev
mailing list