java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1958) at com.sun.javafx.scene.web.skin.HTMLEditorSkin$15$1.updateItem(HTMLEditorSkin.java:669) at com.sun.javafx.scene.web.skin.HTMLEditorSkin$15$1.updateItem(HTMLEditorSkin.java:664) at javafx.scene.control.ListCell.updateItem(ListCell.java:411) at javafx.scene.control.ListCell.indexChanged(ListCell.java:299) at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:114) at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(VirtualFlow.java:1540) at com.sun.javafx.scene.control.skin.VirtualFlow.getCell(VirtualFlow.java:1441) at com.sun.javafx.scene.control.skin.VirtualFlow.getCellBreadth(VirtualFlow.java:1475) at com.sun.javafx.scene.control.skin.VirtualFlow.getMaxCellWidth(VirtualFlow.java:1962) at com.sun.javafx.scene.control.skin.VirtualContainerBase.getMaxCellWidth(VirtualContainerBase.java:87) at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin$6.computePrefWidth(ComboBoxListViewSkin.java:499) at javafx.scene.Parent.prefWidth(Parent.java:861) at javafx.scene.layout.Region.prefWidth(Region.java:1154) at javafx.scene.Node.autosize(Node.java:2710) at javafx.scene.Parent.layoutChildren(Parent.java:1041) at javafx.scene.Group.layoutChildren(Group.java:192) at javafx.scene.Parent.layout(Parent.java:1012) at javafx.scene.Parent.layout(Parent.java:1020) at javafx.scene.Scene.layoutDirtyRoots(Scene.java:521) at javafx.scene.Scene.doLayoutPass(Scene.java:492) at javafx.scene.Scene.preferredSize(Scene.java:1506) at javafx.scene.Scene.impl_preferredSize(Scene.java:1533) at javafx.stage.Window$10.invalidated(Window.java:723) at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:106) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:140) at javafx.stage.Window.setShowing(Window.java:786) at javafx.stage.Window.show(Window.java:801) at javafx.stage.PopupWindow.showImpl(PopupWindow.java:368) at javafx.stage.PopupWindow.show(PopupWindow.java:345) at com.sun.javafx.scene.control.skin.ComboBoxPopupControl.positionAndShowPopup(ComboBoxPopupControl.java:96) at com.sun.javafx.scene.control.skin.ComboBoxPopupControl.show(ComboBoxPopupControl.java:77) at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.handleControlPropertyChanged(ComboBoxBaseSkin.java:114) at com.sun.javafx.scene.control.skin.ComboBoxListViewSkin.handleControlPropertyChanged(ComboBoxListViewSkin.java:206) at javafx.scene.control.SkinBase$2.call(SkinBase.java:188) at javafx.scene.control.SkinBase$2.call(SkinBase.java:186) at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(MultiplePropertyChangeListenerHandler.java:55) at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:86) at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:175) at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:79) at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:176) at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.access$100(ReadOnlyBooleanWrapper.java:146) at javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:142) at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:107) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:140) at javafx.scene.control.ComboBoxBase.setShowing(ComboBoxBase.java:183) at javafx.scene.control.ComboBoxBase.show(ComboBoxBase.java:386) at com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior.show(ComboBoxBaseBehavior.java:246) at com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior.mouseReleased(ComboBoxBaseBehavior.java:204) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:79) at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:72) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) 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:113) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:113) 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:202) at javafx.scene.Scene$MouseHandler.process(Scene.java:3388) at javafx.scene.Scene$MouseHandler.process(Scene.java:3227) at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3179) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1580) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2325) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:287) at com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at com.sun.glass.ui.View.notifyMouse(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.access$300(Unknown Source) at com.sun.glass.ui.win.WinApplication$3$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:722) java.lang.NullPointerException at com.sun.javafx.binding.ExpressionHelper.removeListener(ExpressionHelper.java:72) at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.removeListener(ReadOnlyBooleanWrapper.java:172) at javafx.stage.PopupWindow.unbindOwnerFocusedProperty(PopupWindow.java:531) at javafx.stage.PopupWindow.impl_visibleChanged(PopupWindow.java:440) at javafx.stage.Window$10.invalidated(Window.java:771) at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:106) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:140) at javafx.stage.Window.setShowing(Window.java:786) at javafx.stage.Window.hide(Window.java:811) at javafx.stage.PopupWindow.hide(PopupWindow.java:390) at com.sun.javafx.stage.WindowPeerListener.closed(WindowPeerListener.java:89) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:71) at com.sun.glass.ui.Window.handleWindowEvent(Unknown Source) at com.sun.glass.ui.Window.notifyDestroy(Unknown Source) at com.sun.glass.ui.win.WinWindow._close(Native Method) at com.sun.glass.ui.Window.close(Unknown Source) at com.sun.glass.ui.win.WinWindow.close(Unknown Source) at com.sun.javafx.tk.quantum.WindowStage.close(WindowStage.java:552) at javafx.stage.Window$10.invalidated(Window.java:765) at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:106) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:140) at javafx.stage.Window.setShowing(Window.java:786) at javafx.stage.Window.hide(Window.java:811) at com.sun.javafx.stage.WindowCloseRequestHandler.dispatchBubblingEvent(WindowCloseRequestHandler.java:45) 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:113) 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:202) at com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:82) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:74) at com.sun.glass.ui.Window.handleWindowEvent(Unknown Source) at com.sun.glass.ui.Window.notifyClose(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.access$300(Unknown Source) at com.sun.glass.ui.win.WinApplication$3$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:722)