<Swing Dev> RFR: 5015261: NPE may be thrown if JDesktopIcon is set to null on a JInternalFrame [v6]
Alexey Ivanov
aivanov at openjdk.java.net
Mon Aug 23 19:43:28 UTC 2021
On Mon, 23 Aug 2021 03:58:49 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.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Field spec wording corrected
Marked as reviewed by aivanov (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/4989
More information about the swing-dev
mailing list