Don't dereference a NULL pointer.