<Swing Dev> RFR: 5015261: JInternalFrame causes NPE
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Aug 5 05:02:29 UTC 2021
On Wed, 4 Aug 2021 09:02:25 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> JInternalFrame.getDesktopIcon() can be null as setDesktopIcon() can be called with null value. There are many places in JInternalFrame where getDesktopIcon() is accessed without null check which might cause NPE.
> Added null check for those cases.
Will just stating null icon is unsupported do? I think in that case should we throw IAE?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4989
More information about the swing-dev
mailing list