NullpointerException

HI everybody,How can we handle nullpointerException as a developer.with regards,Anil.Mwww.tejasoft.com
[137 byte] By [anilmekala.reddya] at [2007-11-26 18:14:42]
# 1
Find out what's causing the null pointer exception, and then fix the code so that it doesn't generate try to dereference null references anymore.
paulcwa at 2007-7-9 5:48:11 > top of Java-index,Java Essentials,Java Programming...
# 2

> Find out what's causing the null pointer exception,

> and then fix the code so that it doesn't generate try

> to dereference null references anymore.

precisely. there isn't a "quick fix" all-encompassing answer to this. one thing not to do, though, is to catch a NullPointerException

georgemca at 2007-7-9 5:48:11 > top of Java-index,Java Essentials,Java Programming...
# 3
NUll pointer exception is caused when a variable is pointing to null value and some operation tries to dereference the null value...Fred boy am i rite ;-)
AbiSSa at 2007-7-9 5:48:11 > top of Java-index,Java Essentials,Java Programming...