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

stylepad demo throws NullPointerException at BasicDropTargetListener.java:211

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • None
    • x86
    • windows_nt

      jdkx tests ran OK except for Drag&Drop in stylepad demo, which
      throws NullPointerException during a drag (see below).
      NOTE: running stylepad using the latest win32 promotion
      [j:/java/jdk1.4/win/bin/java] gives the same error.
       
      To reproduce, start up jdkx on the stylepad in your
      win32 environment (substitute the path to your build
      for the "-b" string below):
        net use g: '\\jdk\java-jdk'
        g:/bin/jdkx -b D:/merlin/build/win32/bin stylepad

      When the window comes up, zone some text and try
      to drag it. You will see the following output:

      cd D:/merlin/build/win32/demo/jfc/Stylepad
      D:/merlin/build/win32/bin/java -cp Stylepad.jar;. Stylepad
      java.lang.NullPointerException
              at javax.swing.plaf.basic.BasicDropTargetListener.dragOver(BasicDropTargetListener.java:211)
              at javax.swing.TransferHandler$SwingDropTarget.dragOver(TransferHandler.java:488)
              at sun.awt.dnd.SunDropTargetContextPeer.processMotionMessage(SunDropTargetContextPeer.java:485)
              at sun.awt.dnd.SunDropTargetContextPeer.access$600(SunDropTargetContextPeer.java:55)
              at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchMotionEvent(SunDropTargetContextPeer.java:791)
              at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:737)
              at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
              at java.awt.Component.dispatchEventImpl(Component.java:2783)
              at java.awt.Container.dispatchEventImpl(Container.java:1310)
              at java.awt.Component.dispatchEvent(Component.java:2765)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3068)
              at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:2849)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2744)
              at java.awt.Container.dispatchEventImpl(Container.java:1284)
              at java.awt.Window.dispatchEventImpl(Window.java:1228)
              at java.awt.Component.dispatchEvent(Component.java:2765)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:423)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

            dmendenhsunw David Mendenhall (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: