Check, if "currentRevision" String is null. Handle situation correctly.