> 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