anathema/anathema — Issue #25: Throw no exception in the 'Combos' view when no Charms are learned
Author: UrsKR
Created: 2012-01-01 14:14:41+00:00
State: open
Labels: UI

* Create new Character
* Go to Magic -> Combos
* Mouse over the empty "Available Charms" panel:

```
[ERROR] java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Vector.elementAt(Vector.java:430)
at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)
at net.sf.anathema.character.generic.framework.magic.view.MagicLearnView$1.getToolTipText(MagicLearnView.java:38)
at javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:662)
at javax.swing.Timer.fireActionPerformed(Timer.java:291)
at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)```