Sounds like a bug.  Please enter a JIRA with your test code.

https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report

Thanks!
Steve

On 2013-12-22 1:11 PM, Tom Eugelink wrote:

When I assign a style class to a GridPane (which is then added to a VBox and that to a BorderPane and that in a Popup), like so:
lAppointmentGroupGridPane.getStyleClass().add("AppointmentGroups");

Which has an empty block in CSS:
    .AgendaPopup .AppointmentGroups {
    }

An exception occurs. Commenting out the empty block in the CSS file makes the exception go away.

Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:638)
    at java.util.ArrayList.get(ArrayList.java:414)
    at com.sun.javafx.css.StyleMap.getCascadingStyles(StyleMap.java:121)
    at javafx.scene.CssStyleHelper.getStyle(CssStyleHelper.java:683)
    at javafx.scene.CssStyleHelper.lookupFont(CssStyleHelper.java:1548)
at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:460)
    at javafx.scene.Node.impl_processCSS(Node.java:8677)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1216)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1228)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1228)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1228)
    at javafx.scene.Node.processCSS(Node.java:8587)
    at javafx.scene.Scene.doCSSPass(Scene.java:538)
    at javafx.scene.Scene.preferredSize(Scene.java:1504)
    at javafx.scene.Scene.impl_preferredSize(Scene.java:1571)
    at javafx.stage.Window$9.invalidated(Window.java:733)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.stage.Window.setShowing(Window.java:799)
    at javafx.stage.Window.show(Window.java:814)
    at javafx.stage.PopupWindow.showImpl(PopupWindow.java:403)
    at javafx.stage.PopupWindow.show(PopupWindow.java:348)
at jfxtras.labs.internal.scene.control.skin.AgendaWeekSkin.showMenu(AgendaWeekSkin.java:1969) at jfxtras.labs.internal.scene.control.skin.AgendaWeekSkin.access$2700(AgendaWeekSkin.java:84) at jfxtras.labs.internal.scene.control.skin.AgendaWeekSkin$MenuIcon$5.handle(AgendaWeekSkin.java:1238) at jfxtras.labs.internal.scene.control.skin.AgendaWeekSkin$MenuIcon$5.handle(AgendaWeekSkin.java:1233) 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.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:203)
    at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3321)
    at javafx.scene.Scene$ClickGenerator.access$8800(Scene.java:3252)
    at javafx.scene.Scene$MouseHandler.process(Scene.java:3600)
    at javafx.scene.Scene$MouseHandler.process(Scene.java:3385)
    at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3336)
    at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1618)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2395)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:312) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:237)
    at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:354)
    at com.sun.glass.ui.View.handleMouseEvent(View.java:514)
    at com.sun.glass.ui.View.notifyMouse(View.java:877)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39) at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
    at java.lang.Thread.run(Thread.java:724)
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException at com.sun.javafx.binding.ExpressionHelper.removeListener(ExpressionHelper.java:73) at javafx.beans.property.ReadOnlyBooleanWrapper$ReadOnlyPropertyImpl.removeListener(ReadOnlyBooleanWrapper.java:174) at javafx.stage.PopupWindow.unbindOwnerFocusedProperty(PopupWindow.java:640)
    at javafx.stage.PopupWindow.impl_visibleChanged(PopupWindow.java:466)
    at javafx.stage.Window$9.invalidated(Window.java:784)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.stage.Window.setShowing(Window.java:799)
    at javafx.stage.Window.hide(Window.java:824)
    at javafx.stage.PopupWindow.hide(PopupWindow.java:417)
at com.sun.javafx.stage.WindowPeerListener.closed(WindowPeerListener.java:92) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:110) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:39)
    at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:130)
    at com.sun.glass.ui.Window.handleWindowEvent(Window.java:1241)
    at com.sun.glass.ui.Window.notifyDestroy(Window.java:1154)
    at com.sun.glass.ui.win.WinWindow._close(Native Method)
    at com.sun.glass.ui.Window.close(Window.java:299)
    at com.sun.glass.ui.win.WinWindow.close(WinWindow.java:113)
    at com.sun.javafx.tk.quantum.WindowStage.close(WindowStage.java:609)
    at javafx.stage.Window$9.invalidated(Window.java:778)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109) at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:143)
    at javafx.stage.Window.setShowing(Window.java:799)
    at javafx.stage.Window.hide(Window.java:824)
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: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:203)
at com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:80) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:113) at com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:39)
    at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:130)
    at com.sun.glass.ui.Window.handleWindowEvent(Window.java:1241)
    at com.sun.glass.ui.Window.notifyClose(Window.java:1145)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39) at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
    at java.lang.Thread.run(Thread.java:724)


Should I create a Jira issue?

Tom



Reply via email to