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

Style property auto-suggest menu behaving incorrectly and causing exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8u40
    • 8u40
    • javafx

      I use the Style property's auto-suggest menu all the time and it has become buggy.

      D&D an AnchorPane
      In the Style property, type 'bor' in order to filter the border properties - BUG - the first item in the auto-suggest dropdown is highlighted - it should not be unless the user passes focus to the dropdown (by using mouse or down arrow). Repeat in 2.0 for correct behaviour.
      Now press return - BUG - following exception occurs

      SEVERE: An exception was thrown:
      java.lang.NullPointerException
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.lambda$initialize$186(StyleEditor.java:276)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem$$Lambda$566/2035646488.changed(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.scene.control.TextInputControl$TextProperty.fireValueChangedEvent(TextInputControl.java:1123)
      at javafx.scene.control.TextInputControl$TextProperty.markInvalid(TextInputControl.java:1127)
      at javafx.scene.control.TextInputControl$TextProperty.invalidate(TextInputControl.java:1066)
      at javafx.scene.control.TextInputControl$TextProperty.access$1300(TextInputControl.java:1038)
      at javafx.scene.control.TextInputControl.lambda$new$163(TextInputControl.java:134)
      at javafx.scene.control.TextInputControl$$Lambda$150/856165906.invalidated(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.scene.control.TextField$TextFieldContent.delete(TextField.java:97)
      at javafx.scene.control.TextInputControl$TextProperty.doSet(TextInputControl.java:1135)
      at javafx.scene.control.TextInputControl$TextProperty.set(TextInputControl.java:1061)
      at javafx.scene.control.TextInputControl.setText(TextInputControl.java:282)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.AutoSuggestEditor.useSuggested(AutoSuggestEditor.java:337)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.AutoSuggestEditor.suggestedLvKeyPressed(AutoSuggestEditor.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
      at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1757)
      at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1645)
      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.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
      at javafx.stage.PopupWindow$PopupEventRedirector.handleKeyEvent(PopupWindow.java:984)
      at javafx.stage.PopupWindow$PopupEventRedirector.handleRedirectedEvent(PopupWindow.java:956)
      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:3931)
      at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3877)
      at javafx.scene.Scene.impl_processKeyEvent(Scene.java:2006)
      at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:2468)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:197)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(GlassViewEventHandler.java:147)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:227)
      at com.sun.glass.ui.View.handleKeyEvent(View.java:544)
      at com.sun.glass.ui.View.notifyKey(View.java:954)

      Jul 04, 2014 1:36:02 PM com.oracle.javafx.scenebuilder.app.SceneBuilderApp$SceneBuilderUncaughtExceptionHandler uncaughtException
      SEVERE: An exception was thrown:
      java.lang.NullPointerException
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.getValue(StyleEditor.java:330)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.lambda$initialize$185(StyleEditor.java:256)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem$$Lambda$565/1131301692.handle(Unknown Source)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.lambda$null$125(InspectorPanelController.java:1164)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController$$Lambda$601/1746771815.call(Unknown Source)
      at com.oracle.javafx.scenebuilder.kit.editor.EditorController.canGetFxmlText(EditorController.java:364)
      at com.oracle.javafx.scenebuilder.app.DocumentWindowController.performCloseAction(DocumentWindowController.java:1967)
      at com.oracle.javafx.scenebuilder.app.DocumentWindowController.onCloseRequest(DocumentWindowController.java:1077)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractWindowController.lambda$new$109(AbstractWindowController.java:62)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractWindowController$$Lambda$51/226226211.handle(Unknown Source)
      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.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:198)
      at com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:88)
      at com.sun.javafx.tk.quantum.GlassStage.lambda$requestClosingAllWindows$292(GlassStage.java:194)
      at com.sun.javafx.tk.quantum.GlassStage$$Lambda$603/1027970801.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassStage.requestClosingAllWindows(GlassStage.java:193)
      at com.sun.javafx.tk.quantum.QuantumToolkit$2.handleQuitAction(QuantumToolkit.java:312)
      at com.oracle.javafx.scenebuilder.app.AppPlatform$MacEventHandler.handleQuitAction(AppPlatform.java:277)
      at com.sun.glass.ui.mac.MacApplication$4.action(MacApplication.java:170)

      Jul 04, 2014 1:36:03 PM com.oracle.javafx.scenebuilder.app.SceneBuilderApp$SceneBuilderUncaughtExceptionHandler uncaughtException
      SEVERE: An exception was thrown:
      java.lang.NullPointerException
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.getValue(StyleEditor.java:330)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.lambda$initialize$185(StyleEditor.java:256)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem$$Lambda$565/1131301692.handle(Unknown Source)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.lambda$handleEditingChange$126(InspectorPanelController.java:1182)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController$$Lambda$548/235816497.changed(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:103)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
      at javafx.beans.property.BooleanProperty.setValue(BooleanProperty.java:77)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.InlineListEditor.editing(InlineListEditor.java:90)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem.lambda$initialize$187(StyleEditor.java:293)
      at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.editors.StyleEditor$StyleItem$$Lambda$567/670661975.changed(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      at javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
      at javafx.scene.Node$FocusedProperty.notifyListeners(Node.java:7526)
      at javafx.scene.Node.setFocused(Node.java:7579)
      at javafx.scene.Scene$KeyHandler.setWindowFocused(Scene.java:3899)
      at javafx.scene.Scene$KeyHandler.lambda$new$15(Scene.java:3921)
      at javafx.scene.Scene$KeyHandler$$Lambda$173/138383814.invalidated(Unknown Source)
      at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:349)
      at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
      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.stage.Window.setFocused(Window.java:424)
      at com.sun.javafx.stage.WindowPeerListener.changedFocused(WindowPeerListener.java:59)
      at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:90)
      at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:133)
      at com.sun.glass.ui.Window.handleWindowEvent(Window.java:1229)
      at com.sun.glass.ui.Window.notifyFocus(Window.java:1208)

            jcambon Jerome Cambon
            mchicharro Moises Chicharro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: