JavaFX: IndexOutOfBoundsException when creating new account
jGnash Personal Finance
Brought to you by:
ccavanaugh
OS: Linux
Distro: Debian/stable
Java: $ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
I get the following error dialogs popping up when I use jGnashFX 2.19.0 and try to do a "File-> New" and after I had clicked through all the defaults.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89) at jgnash.uifx.control.AccountComboBox.lambda$loadAccounts$31(AccountComboBox.java:139) at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at com.sun.glass.ui.gtk.GtkApplication.lambda$null$50(GtkApplication.java:139) at java.lang.Thread.run(Thread.java:745)
Fixed for the next release. Thanks for reporting the bug!