Ok, I would usually go to the computercraft forums, but apparently I can't post any topics. Anyways, I was getting an error I couldn't understand how to fix. Here is my code:
mon.peripheral.wrap("right")
mon.setCursorPos(1,2)
mon.write("Test")
event, e=os.pullEvent("key")
print"Test text"
while true do
if e==25 then
shell.run("lock") -- this is a password program I have set up
break
end
end
Anyways, what this program does is basically writes something on my monitor, and when P is pressed, it runs a password system. However, after about 10 seconds, an error comes up: nil: vm error: java.lang.NullPointerException
I have no idea what this means, or what is causing it XD
any help would be appreciated. Thanks