put in check for whether getFirstRevision is null