don't deref NULL pointer