I use object != null a lot to avoid NullPointerException.
object != null
Is there a good alternative to this?
For example I often use:
Rather than Null Object Pattern -- which has its uses -- you might consider situations where the null object is a bug.
When the exception is thrown, examine the stack trace and work through the bug.