Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.1
-
None
Description
In my application I have on TabbedPanel component that has no tab ( will to be removed since make no sense ). Any way, at some point I put the component to an AjaxRequestTarget response, an when the tabbed panel was re-rendered, it throw an java.lang.ArrayIndexOutOfBoundsException: 0 (I'm sending an test case attached)
The problem is that on isTabVisible method, an visibility variable receive the visibility on cache using the tabIndex:
Boolean visible = tabsVisibilityCache[tabIndex];
at this moment, the tabsVisibility is empty ( and tabIndex == 0 )
in my workspace I resolve the exception testing the array lenght (I'm sending a path)
although is an rare occurrence bug, I think wicket should provide an solution.