Exception in thread "main" java.lang.NullPointerException at acm.program.Program.main(Program.java:917) at stanford.karel.Karel.main(Karel.java:202)
If you are getting this error after you tried to run “Karel the robot” , you are not alone.
Apparently, if you download the version of eclipse that Stanford provides you are unlikely to get the error but if you are like me trying to run your own version of eclipse you will likely get the error.
Here is how to fix it:
Then probably the most important step: Enter “code=CollectNewspaperKarel” in program arguments under the arguments tab.
Click on Apply and then Run your program.
Final Result (Eclipse Indigo)
That should be it. This was supposed to be easy apparently.