SeniorSpielbergo/Teamprojekt-WS2011-12 — Issue #18: Editor is not enabled after abort the simulation during the writing of input words
Author: bitsteller
Created: 2012-01-03 11:28:20+00:00
State: open

Steps to reproduce:

1. Open any turing or brainfuck machine.
2. Simulation->Run
3. Run.
4. Close the simulation window.

Issue:

The simulation window disposes, but the editor stays disabled, so one can chang the machine anymore. If the window is closed before the input words are completely written, a useless error message is shown:

Error: Writing the input word failed.

tape.TapeException: Action@pos 0: Tape has not been initialized.
at tape.GraphicTape.moveRight(GraphicTape.java:172)
at tape.GraphicTape.writeInputWord(GraphicTape.java:216)
at tape.Tape.run(Tape.java:178)
at java.lang.Thread.run(Thread.java:680)

Expected behavior:

The simulation window should disappear without an error message and the editor should be enabled again.