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

NPE in DocumentWindowController.canPerformSelectAll() after undoing a set fx:id operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • None

      1) Drop an AnchorPane
      2) In Code section of Inspector panel, set fx:id to "Blah" (and press Return)
      3) Edit -> Undo
      4) Press Edit menu
          => the exception below is raised

      java.lang.Exception: DocumentControlActionController.canPerform() did break for menu item javafx.scene.control.MenuItem@1a7978c6
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.handleOnMenuValidation(MenuBarController.java:1039)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.access$700(MenuBarController.java:88)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$19.handle(MenuBarController.java:1020)
      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.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      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.control.Menu.setShowing(Menu.java:169)
      at javafx.scene.control.Menu.show(Menu.java:376)
      at com.sun.javafx.scene.control.GlobalMenuAdapter$3.invalidated(GlobalMenuAdapter.java:85)
      at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:135)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
      at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:178)
      at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.access$100(ReadOnlyBooleanWrapper.java:148)
      at javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:144)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
      at javafx.scene.control.Menu.setShowing(Menu.java:180)
      at javafx.scene.control.Menu.show(Menu.java:376)
      at com.sun.javafx.tk.quantum.GlassMenuEventHandler.handleMenuOpening(GlassMenuEventHandler.java:41)
      at com.sun.glass.ui.Menu.notifyMenuOpening(Menu.java:187)
      Caused by: java.lang.NullPointerException
      at com.oracle.javafx.scenebuilder.app.DocumentWindowController.canPerformSelectAll(DocumentWindowController.java:1212)
      at com.oracle.javafx.scenebuilder.app.DocumentWindowController.canPerformControlAction(DocumentWindowController.java:494)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController$DocumentControlActionController.canPerform(MenuBarController.java:1516)
      at com.oracle.javafx.scenebuilder.app.menubar.MenuBarController.handleOnMenuValidation(MenuBarController.java:1032)
      ... 24 more

            slions Sandra Lions-piron
            eleponn Eric Le Ponner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: