on ‎2009 May 14 8:16 AM
Hi All,
Can Any one tell me abt java.lang.NullPointerException.
when we will get this type of error and how to solve this.
if we get this error where we have to check the error.
Request clarification before answering.
Hi
U will receive NullPointerException when u r trying to address a parameter that holds null value.
For instance if u try to get the value of a context attribute and that value is null u will receive that exception.
In order to understand why does it happen u will have to examine when in the application is it being throwed ( like : when clicking a specific button ) .
And then debug the code of the event to understand when do u point null.
If u will send the complete exception thrown I can tell u at which method it was thrown.
Hope it helps
Nitsan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.