Bug - Fixed Error during session initialization

Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

          KoLmafia v15.8 r11705, Mac OS X, Java 1.7.0_10          KoLmafia v15.8 r11705, Mac OS X, Java 1.7.0_10

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 Please note: do not post this log in the KoLmafia thread. If you Please note: do not post this log in the KoLmafia thread. If you

 would like the dev team to look at it, please write a bug report would like the dev team to look at it, please write a bug report

 at kolmafia.us. Include specific information about what you were  at kolmafia.us. Include specific information about what you were 

 doing when you made this and include the log as an attachment. doing when you made this and include the log as an attachment.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 Timestamp: Sat Dec 15 18:07:35 EST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Error during session initialization
 Timestamp: Sat Dec 15 18:07:35 EST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Error during session initialization
class java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
class java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
	at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:612)
	at java.util.ArrayList.add(ArrayList.java:426)
	at net.java.dev.spellcast.utilities.LockableListModel.addVisibleElement(LockableListModel.java:305)
	at net.java.dev.spellcast.utilities.LockableListModel.addVisibleElement(LockableListModel.java:275)
	at net.java.dev.spellcast.utilities.LockableListModel.add(LockableListModel.java:270)
	at net.java.dev.spellcast.utilities.LockableListModel.add(LockableListModel.java:322)
	at net.sourceforge.kolmafia.persistence.AdventureDatabase.addAdventure(AdventureDatabase.java:344)
	at net.sourceforge.kolmafia.persistence.AdventureDatabase.refreshAdventureList(AdventureDatabase.java:312)
	at net.sourceforge.kolmafia.session.LoginManager.initialize(LoginManager.java:165)
	at net.sourceforge.kolmafia.session.LoginManager.doLogin(LoginManager.java:88)
	at net.sourceforge.kolmafia.session.LoginManager.login(LoginManager.java:72)
	at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:439)
	at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:1893)
	at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1788)
	at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1453)
	at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1346)
	at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:261)
	at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:222)
	at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:185)
	at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.doLogin(LoginFrame.java:341)
	at net.sourceforge.kolmafia.swingui.LoginFrame$LoginPanel.actionConfirmed(LoginFrame.java:299)
	at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ActionConfirmListener.execute(GenericPanel.java:615)
	at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
	at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:342)
Error during session initialization

This happened when I accidentally pressed Return twice after using the arrow keys to select which user I wanted to log in as. Not sure what went wrong exactly, but a simple fix would be to ignore keyboard input while logging in is happening.
 
Top