Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6829326

Getting java.lang.NullPointerException: null pData while opening a File,Print,Page Dialog in Win

XMLWordPrintable

    • b55
    • x86
    • windows, windows_xp
    • Verified

      Getting "java.lang.NullPointerException: null pData" while opening a FileDialog/PrintDialog/PageDialog in Windows.
      This is reproducible in Windows XP, Vista with the Jdk7 b55 pit build.

      Steps to Reproduce:
      1. Run the attached testcase(ModalityTest.java)
      2. Click on "Open File Dialog", "Open Page Dialog" and "Open Print Dialog"
      3.Observe that Exception is thrown on console. If you see the same, then the bug is reproduced.

      The stack trace is:
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: null pData
              at sun.awt.windows.WComponentPeer.setZOrder(Native Method)
              at sun.awt.windows.WComponentPeer.setZOrder(WComponentPeer.java:1032)
              at java.awt.Component.addNotify(Component.java:6669)
              at java.awt.Container.addNotify(Container.java:2611)
              at java.awt.Window.addNotify(Window.java:720)
              at java.awt.Dialog.addNotify(Dialog.java:763)
              at java.awt.FileDialog.addNotify(FileDialog.java:283)
              at java.awt.Dialog.conditionalShow(Dialog.java:912)
              at java.awt.Dialog.show(Dialog.java:1061)
              at java.awt.Component.show(Component.java:1525)
              at java.awt.Component.setVisible(Component.java:1477)
              at java.awt.Window.setVisible(Window.java:925)
              at java.awt.Dialog.setVisible(Dialog.java:1011)
              at ModalityTest.actionPerformed(ModalityTest.java:79)
              at java.awt.Button.processActionEvent(Button.java:409)
              at java.awt.Button.processEvent(Button.java:377)
              at java.awt.Component.dispatchEventImpl(Component.java:4620)
              at java.awt.Component.dispatchEvent(Component.java:4446)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
      ad.java:286)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
      java:201)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:191)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)

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

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

            dcherepanov Dmitry Cherepanov
            kpintosunw Karen Pinto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: