Avoid possible null dereference.