I am running the attached test on JDK7-b02 and I am getting a NPE when pressing CTRL+C on the console. This test basically creates a Frame for each GraphicsConfig available on the GraphicsDevice and renders some 2D graphics on to a canvas added to each of the frames.
This exception is not reproducible on JDK6-FCS and JDK7-b01 whereas it is reproducible on JDK7-b02. Also repoducible on JDK7-b10 AWT PIT build. This is specific to win32 and not reproducible on SolSparc10. I am filing it against AWT since AWT integrated into b02 and 2D did not.
Here is the exception-
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: HDC for component
at sun.java2d.loops.DrawGlyphList.DrawGlyphList(Native Method)
at sun.java2d.pipe.SolidTextRenderer.drawGlyphList(SolidTextRenderer.java:23)
at sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:54)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2753)
at GCCanvas.paint(ScreenStandaloneTest.java:111)
at java.awt.Canvas.update(Canvas.java:114)
at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
at sun.awt.RepaintArea.paint(RepaintArea.java:216)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:301)
at java.awt.Component.dispatchEventImpl(Component.java:4484)
at java.awt.Component.dispatchEvent(Component.java:4238)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
I have attached a test - ScreenStandaloneTest.java. Compile and run it. When all the frames are loaded (around 26 on my machine), press CTRL+C on the console. you will get the above exception.