Zomis / Brainduck

Brainfuck Interpreter in Java/Groovy, with a Groovy DSL
40 stars 1 forks source link

Using Run -> Step Continue can lead to infinite loop #25

Closed Zomis closed 8 years ago

Zomis commented 8 years ago

When using this code: http://codereview.stackexchange.com/q/26648/31562 and pressing F8 (Step Continue) the program can hang, or it can also stop the loop at the wrong place.

The intended behavior, I believe, is:

Zomis commented 8 years ago

The infinite loop was caused by not checking BrainfuckCode.getNextCommand() for null