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

WebView: opening a link in a new Windows results in a NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0, 7-pool
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Description

      html links with attribute target="_blank" or by rightclicking a link and press "open in new Window" results in a NullPointerexception in WebEngine.getPage();

      Stacktrace:

      java.lang.NullPointerException
      at javafx.scene.web.WebEngine$1.getPage(WebEngine.java:63)
      at com.sun.webpane.sg.Accessor.getPageFor(Accessor.java:22)
      at com.sun.webpane.sg.UIClientImpl.createPage(UIClientImpl.java:33)
      at com.sun.webpane.platform.WebPage.fwkCreateWindow(WebPage.java:1865)
      at com.sun.webpane.platform.WebPage.twkProcessMouseEvent(Native Method)
      at com.sun.webpane.platform.WebPage.dispatchMouseEvent(WebPage.java:718)
      at javafx.scene.web.WebView.processMouseEvent(WebView.java:518)
      at javafx.scene.web.WebView.access$600(WebView.java:46)
      at javafx.scene.web.WebView$11.handle(WebView.java:578)
      at javafx.scene.web.WebView$11.handle(WebView.java:576)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:55)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:161)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:114)
      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.EventUtil.fireEventImpl(EventUtil.java:44)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
      at javafx.event.Event.fireEvent(Event.java:156)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:2364)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:2187)
      at javafx.scene.Scene$MouseHandler.access$1200(Scene.java:2159)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1106)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1647)
      at com.sun.javafx.tk.quantum.EmbeddedScene$2.run(EmbeddedScene.java:255)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:100)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
      at java.lang.Thread.run(Thread.java:662)
      Exception in thread "JavaFX Application Thread"

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              mweidemanjfx Matthias Weidemann (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: