JDK-6212318 : Win32SurfaceData.initOps generates NullPointerException when closing Java apps
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-12-23
  • Updated: 2010-04-02
  • Resolved: 2004-12-23
Related Reports
Duplicate :  
Description
I found this bug when testing the testcase for 5036570. So you can find the testcase from bug 5036570. When I type some japanese characters in the forst textfield and close the applet, you will see the following exceptions.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component
 argument pData
        at sun.java2d.windows.Win32SurfaceData.initOps(Native Method)
        at sun.java2d.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:450)

        at sun.java2d.windows.Win32SurfaceData.createData(Win32SurfaceData.java:
317)
        at sun.awt.Win32GraphicsConfig.createSurfaceData(Win32GraphicsConfig.jav
a:358)
        at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java
:332)
        at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java
:313)
        at sun.awt.windows.WComponentPeer$2.run(WComponentPeer.java:353)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:589)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

This bug can be reproduced only on Mustang build. It can't be reproduced on Tiger. 

###@###.### 2004-12-23 20:19:59 GMT

Comments
EVALUATION This is a duplicate of 5062191: NPE in Win32SurfaceData.initOps when exiting appletviewer on Swing applet ###@###.### 2004-12-23 21:01:27 GMT
23-12-2004