On Wed, 4 Aug 2021 09:02:25 GMT, Prasanta Sadhukhan <psadhuk...@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 <psadhuk...@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

Reply via email to