RFR: 8159055: ImageIcon.setImage can't handle null parameter [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Jun 12 07:03:29 UTC 2025


On Thu, 12 Jun 2025 06:57:20 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

> > yes..i will raise it once we are done with this PR approval..
> 
> Ok... Can't we just mention in the javadoc that `null image will throw an NPE` and then the code changes are not required?

No, as I mentioned in the description the MediaTracker creation and id addition, tracking and removal is supposedly not required for null image.

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

PR Comment: https://git.openjdk.org/jdk/pull/25767#issuecomment-2965365027


More information about the client-libs-dev mailing list