1.

Solve : Java Help?

Answer»

I am getting the error
ImagePGM is the name of my class and CONSTRUCTOR. I just want to know what these errors mean in plain english.

Exception in thread "main" java.lang.NullPointerException
at java.io.File.(Unknown SOURCE)
at ImagePGM.(ImagePGM.java:29)
at ImagePGM.main(ImagePGM.java:197)

Thank youQuote

NullPointerException

You program did not start a valid pointer.
The pointer was empty. Quote from: Geek-9pm on May 02, 2010, 10:14:37 PM
You program did not start a valid pointer.
The pointer was empty.

A pointer was empty but it was never started.

the only "pointers" in java are the object reference pointers, which are object types. for example, you can declare a VARIABLE as a ArrayList but unless you set it to an instance of an ArrayList it is a null pointer, and any attempt to access the methods of the variable results in an NullPointerException.

of course since no actual code was provided it's impossible to determine the exact cause of the ISSUE. the only helpful information here is that it OCCURED in the main() routine.


Discussion

No Comment Found