Hide Forgot
0:11:13.912 [ERROR] Uncaught exception escaped java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at org.nogah.webadmin.section.main.presenter.tab.cluster.SubTabClusterGeneralPresenter.onClusterSelectionChange(SubTabClusterGeneralPresenter.java:61) at org.nogah.webadmin.section.main.presenter.tab.cluster.SubTabClusterGeneralPresenterProxyDefImpl$1$1.execute(SubTabClusterGeneralPresenterProxyDefImpl.java:79) at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50) at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:229) at com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:389) at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78)
I did some quick investigation on this one. I wasn't able to reproduce this bug. According to the stack trace, this bug means that the presenter attempts to retrieve the first item (index 0) from selected item list, while the selected item list is empty (size 0). The current AbstractSubTabPresenter.updateMainTabSelection() implementation is prepared for the case that the selected item list is empty, in this case the getMainTabSelectedItem() method returns null. I guess this bug can be closed after confirmation.
Yes indeed, I verified that, probably it was discovered before we pushed some new code into AbstractSubTabPresenter.updateMainTabSelection() method, Verified, closing.