Handled the case where a null value is recorded.