TabbedPanel rendering bug

---------------------------

                 Key: WICKET-2478
                 URL: https://issues.apache.org/jira/browse/WICKET-2478
             Project: Wicket
          Issue Type: Bug
          Components: wicket-extensions
    Affects Versions: 1.4.1
            Reporter: Pedro Santos


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)

Boolean visible = tabsVisibilityCache.length > 0 && 
tabsVisibilityCache[tabIndex];

although is an rare occurrence bug, I think wicket should provide an  solution.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to