<Swing Dev> Integrated: 5015261: NPE may be thrown if JDesktopIcon is set to null on a JInternalFrame

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Aug 24 04:07:32 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.

This pull request has now been integrated.

Changeset: 22ef4f06
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/22ef4f065315c1238216849ce9ce71b8207b43f8
Stats:     6 lines in 1 file changed: 6 ins; 0 del; 0 mod

5015261: NPE may be thrown if JDesktopIcon is set to null on a JInternalFrame

Reviewed-by: serb, prr, aivanov

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

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


More information about the swing-dev mailing list