lamao / stones-of-history

Automatically exported from code.google.com/p/stones-of-history
0 stars 0 forks source link

Crash when attemp to walk through console history when it's empty. #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
*BUILD NUMBER*
revision r100

*OS*

*STEPS TO REPRODUCE*
1. Run the game.
2. Open console.
3. Press UP of DOWN key.

*ACTUAL RESULT*
Exception occurs (stack trace after UP key).
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
    at java.util.LinkedList.entry(LinkedList.java:365)
    at java.util.LinkedList.get(LinkedList.java:315)
    at lamao.soh.console.SHConsoleState.onKey(SHConsoleState.java:236)
    at com.jme.input.lwjgl.LWJGLKeyInput.update(LWJGLKeyInput.java:115)
    at com.jme.input.InputSystem.update(InputSystem.java:68)
    at com.jmex.game.StandardGame.run(StandardGame.java:248)
    at java.lang.Thread.run(Thread.java:619)

*EXPECTED RESULT*
Message like 'console history is empty' appears.

*ADDITIONAL DESCRIPTION*

Original issue reported on code.google.com by lamao.ua@gmail.com on 7 Jun 2010 at 9:25

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r101.

Original comment by lamao.ua@gmail.com on 7 Jun 2010 at 9:46

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 2ee6b778b330.

Original comment by lamao.ua@gmail.com on 1 Nov 2012 at 7:17