Details
-
Type:
Bug
-
Status: Resolved (View workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects versions: None
-
Fix versions: 4.5.0
-
Components: None
-
Labels:None
Description
When a new debugger is shown, the implementation of
org.jivesoftware.smackx.debugger.EnhancedDebuggerWindow#showNewDebugger
attempts to add a new tab to a JTabbedPane by counting the components in the tabbed pane, and adding the new tab to 'index minus one'.
The amount of components in a JTabbedPane need not be equal to the amount of tabs in the pane, which can cause
IndexOutOfBoundException
to be thrown.
When adding a new tab 'to the end' of the pane, the index
-1
can (should?) be used as a shortcut to get the correct index.
Attachments
Issue links
- relates to
-
SPARK-2232 Can't log in with debugger enabled
-
- Reopened
-