Jump to content

Computercraft Error Help!


Recommended Posts

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:




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




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

Link to comment
Share on other sites

Could it be in the lock program?
Well, the lock program works when I isolate it to itself. Also, I haven't even pressed the event key P to launch the Lock program, so I don't think the lock would be a problem. My sign just flashes off, then when I open the computer, that error comes up(after I type startup or reboot).
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...