Guard against result.endpoint being nil