Yes exactly. A NullPointerException happens when you try to call a method on an object, but the object does not exist.
For example, compare these two bits of code:
String s = "Hello World";...
Type: Posts; User: Cornix
Yes exactly. A NullPointerException happens when you try to call a method on an object, but the object does not exist.
For example, compare these two bits of code:
String s = "Hello World";...
Please post the entire error message. Furthermore, do you know what a NullPointerException is and what it means if you get one?
Perhaps google the term "NullPointerMessage" and read up on some...