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

NPE from Ensemble8 "Overlay Media Sample" when click on context menu

XMLWordPrintable

      Run Ensemble8, select "Overlay Media Sample", select play.
      Hover over video and you get a ">>" in upper right corner. Click on the ">>" and get the exception.

      java -ea -cp ./apps/samples/Ensemble8.jar:./sdk/rt/lib/ext/jfxrt.jar ensemble.EnsembleApp

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at com.sun.javafx.scene.control.skin.ContextMenuContent.computeInitialSize(ContextMenuContent.java:429)
      at com.sun.javafx.scene.control.skin.ContextMenuContent.<init>(ContextMenuContent.java:130)
      at com.sun.javafx.scene.control.skin.ContextMenuSkin.<init>(ContextMenuSkin.java:103)
      at javafx.scene.control.ContextMenu.createDefaultSkin(ContextMenu.java:315)
      at javafx.scene.control.PopupControl$CSSBridge.impl_processCSS(PopupControl.java:1175)
      at javafx.scene.Parent.impl_processCSS(Parent.java:1271)
      at javafx.scene.Node.processCSS(Node.java:8733)
      at javafx.scene.Node.applyCss(Node.java:8826)
      at javafx.scene.control.ContextMenu.show(ContextMenu.java:257)
      at com.sun.javafx.scene.control.skin.ToolBarSkin$ToolBarOverflowMenu$1.handle(ToolBarSkin.java:509)
      at com.sun.javafx.scene.control.skin.ToolBarSkin$ToolBarOverflowMenu$1.handle(ToolBarSkin.java:502)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:204)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3716)
      at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3444)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1663)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2459)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
      at com.sun.glass.ui.View.notifyMouse(View.java:898)

            dgrieve David Grieve
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: