null-ptr-exp - is start or end dates are null, convertTo only compares IDs