Node () { Node result = null; if (myError != null) { if (!SvnUtil.isUnversionedOrNotFound(myError)) { // error code does not indicate that myFile is unversioned or path is invalid => create result, but indicate error result = new Node(myFile, Url.EMPTY, Url.EMPTY, myError); } } else if (myInfo != null && myInfo.getRepositoryRootUrl() != null && myInfo.getUrl() != null) { result = new Node(myFile, myInfo.getUrl(), myInfo.getRepositoryRootUrl()); } return result; }