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

Gtk: Drag and drop in WebView produces NullPointerException in WebViewBrowser demo

    Details

      Description

      Select some text from a web page in the WebViewBrowser demo produced by NetBeans (the single file is attached) and then attempt to drag and drop it. A stream of NullPointerException is produced:

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at javafx.scene.web.WebView$18.handle(WebView.java:1173)
      at javafx.scene.web.WebView$18.handle(WebView.java:1165)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
      at javafx.event.Event.fireEvent(Event.java:171)
      at javafx.scene.Scene$DnDGesture.handleExitEnter(Scene.java:2874)
      at javafx.scene.Scene$DnDGesture.processTargetEnterOver(Scene.java:2771)
      at javafx.scene.Scene$DnDGesture.access$6100(Scene.java:2603)
      at javafx.scene.Scene$DropTargetListener.dragOver(Scene.java:2530)
      at com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.handleDragOver(GlassSceneDnDEventHandler.java:147)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleDragOver(GlassViewEventHandler.java:404)
      at com.sun.glass.ui.View.handleDragOver(View.java:701)
      at com.sun.glass.ui.View.notifyDragOver(View.java:1010)
      at com.sun.glass.ui.gtk.GtkDnDClipboard.pushToSystemImpl(Native Method)
      at com.sun.glass.ui.gtk.GtkDnDClipboard.pushToSystem(GtkDnDClipboard.java:24)
      at com.sun.glass.ui.SystemClipboard.flush(SystemClipboard.java:28)
      at com.sun.glass.ui.ClipboardAssistance.flush(ClipboardAssistance.java:34)
      at com.sun.javafx.tk.quantum.QuantumClipboard.flush(QuantumClipboard.java:196)
      at com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(QuantumToolkit.java:1189)
      at javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Scene.java:2648)
      at javafx.scene.Scene$DnDGesture.process(Scene.java:2709)
      at javafx.scene.Scene$DnDGesture.access$8700(Scene.java:2603)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3340)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3164)
      at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3119)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1559)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2261)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:228)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:528)
      at com.sun.glass.ui.View.notifyMouse(View.java:922)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Activity

            People

            • Assignee:
              azvegint Alexander Zvegintsev (Inactive)
              Reporter:
              mcdevjfx mcdev1 (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: