I get ArrayOutOfBoundsException in a desktop application containing toolbar label and focusable buttons in the toolbar. Exception is thrown after resizing the window.
How to reproduce:
In the attachment one will find layout to reproduce the case. Fastest way is to open it with SceneBuilder and preview it in a window.
In my case I had a borderpane with toolbar in top part. In toolbar I had label (application logo in my case) and 3 buttons which are focus traversable (it's important, after disabling this option, exception is no longer thrown). Now, click on one of the buttons so it has focus "aura" around it, then grab the application border and resize the application so that all buttons are hidden, after that try to resize the application again to the state when buttons can be seen again.
I reproduced it also using Scene Builder and its preview in window option.
How to reproduce:
In the attachment one will find layout to reproduce the case. Fastest way is to open it with SceneBuilder and preview it in a window.
In my case I had a borderpane with toolbar in top part. In toolbar I had label (application logo in my case) and 3 buttons which are focus traversable (it's important, after disabling this option, exception is no longer thrown). Now, click on one of the buttons so it has focus "aura" around it, then grab the application border and resize the application so that all buttons are hidden, after that try to resize the application again to the state when buttons can be seen again.
I reproduced it also using Scene Builder and its preview in window option.