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

NullPointerException while entering empty submenu with "arrow right"

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      generic

      Description

      A DESCRIPTION OF THE PROBLEM :
      Trying to enter empty submenu in the context menu with "arrow right" results in NullPointerException.

      ACTUAL -
      java.lang.NullPointerException
          at com.sun.javafx.scene.control.ContextMenuContent.showMenu(ContextMenuContent.java:654)
          at com.sun.javafx.scene.control.ContextMenuContent.lambda$processRightKey$4(ContextMenuContent.java:644)
          at java.base/java.util.Optional.ifPresent(Unknown Source)
          at com.sun.javafx.scene.control.ContextMenuContent.processRightKey(ContextMenuContent.java:629)
          at com.sun.javafx.scene.control.ContextMenuContent.access$400(ContextMenuContent.java:73)
          at com.sun.javafx.scene.control.ContextMenuContent$1.handle(ContextMenuContent.java:502)
          at com.sun.javafx.scene.control.ContextMenuContent$1.handle(ContextMenuContent.java:488)
          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.EventUtil.fireEventImpl(EventUtil.java:74)
          at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
          at javafx.stage.PopupWindow$PopupEventRedirector.handleKeyEvent(PopupWindow.java:1001)
          at javafx.stage.PopupWindow$PopupEventRedirector.handleRedirectedEvent(PopupWindow.java:973)
          at com.sun.javafx.event.EventRedirector.dispatchCapturingEvent(EventRedirector.java:106)
          at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
          at com.sun.javafx.event.EventRedirector.redirectEvent(EventRedirector.java:124)
          at com.sun.javafx.event.EventRedirector.dispatchCapturingEvent(EventRedirector.java:103)
          at com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(CompositeEventDispatcher.java:43)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:52)
          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:198)
          at javafx.scene.Scene$KeyHandler.process(Scene.java:4058)
          at javafx.scene.Scene$KeyHandler.access$1500(Scene.java:4004)
          at javafx.scene.Scene.processKeyEvent(Scene.java:2121)
          at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2595)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:217)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:149)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$1(GlassViewEventHandler.java:248)
          at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:390)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:247)
          at com.sun.glass.ui.View.handleKeyEvent(View.java:547)
          at com.sun.glass.ui.View.notifyKey(View.java:971)
          at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
          at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
          at java.base/java.lang.Thread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aghaisas Ajit Ghaisas
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: