Don't dereference null pointers