Error when inputting data using scanner

At one point in my program I use scanner to read the users keyboard input, after pressing enter I get this error:

NullPointerException:

at JerooProgram.makeRobotJeroos(JerooProgram.java:158)

at JerooProgram.main(JerooProgram.java:23)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

Right after collecting the data I assign it to a String, I don't know if that matters or not.

Skeetles

[649 byte] By [Skeetlesa] at [2007-10-2 17:34:21]
# 1
Something at line 158 has a null value (and shouldn't)NullPointerException: at JerooProgram.makeRobotJeroos(JerooProgram.java:158)Figure out what the error is (one way is to print out all values used in that line of code.)
ChuckBinga at 2007-7-13 18:51:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...