ComputerCraft

ComputerCraft

21M Downloads

monitor.write(nil) doesn't error right

SoniEx2 opened this issue ยท 3 comments

commented

monitor.write(nil) doesn't error right. I had to add a bunch of .. "" to find where it was erroring.

commented

I would say you're doing something wrong, perhaps consider creating an account on the ComputerCraft Forums and jumping onto the Ask a Pro section to get assistance.

commented

monitor.write(nil) (because you forgot to initialize a variable somewhere) shows "Java threw an exception: java.lang.NullPointerException" (no line numbers or anything). Alternatively, monitor.write(nil .. "") causes an "attempt to concatenate nil and string" error, which includes line numbers, so you can actually see what's wrong instead of having to guess it.

commented

This is already fixed in the latest beta