Index: src/test/api/java/common/javax/swing/JInternalFrameTest.java =================================================================== --- src/test/api/java/common/javax/swing/JInternalFrameTest.java (revision 489013) +++ src/test/api/java/common/javax/swing/JInternalFrameTest.java (working copy) @@ -1149,6 +1149,15 @@ //desktop.remove(frame.getDesktopIcon()); //frame.setDesktopIcon(null); //assertNull("desktopPane is null", frame.getDesktopPane()); + + try { + JInternalFrame jf = new JInternalFrame(); + JInternalFrame.JDesktopIcon fc = new JInternalFrame.JDesktopIcon(jf); + fc.setInternalFrame(null); + assertNull(fc.getDesktopPane()); + } catch (NullPointerException npe) { + fail("NullPointerException"); + } } /*