TheThirdOne/rars

NullPointerException performing input from /dev/null

FrBrGeorge opened this issue · 0 comments

When running something like

li a7, 12
ecall

in this manner:
rars nc this_program.s < /dev/null
got Exception in thread "main" java.lang.NullPointerException

The problem is here: .readLine() just returns null.

#150 is simple fix to the problem.