check for null end date