Removed a redundant null check.