Avoid null-pointer dereference.