Fix indent and remove hardcoded value.
Check for null.