Return null when the object is null.