<Swing Dev> RFR: 5015261: JInternalFrame causes NPE [v5]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Aug 20 04:45:26 UTC 2021


On Thu, 19 Aug 2021 16:48:46 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:
> 
>   Throw NPE upfront in setter

Please review CSR https://bugs.openjdk.java.net/browse/JDK-8272748

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

PR: https://git.openjdk.java.net/jdk/pull/4989


More information about the swing-dev mailing list