String lockToken = status.getLocalLock().getID(); String lockOwner = status.getLocalLock().getOwner(); String lockComment = status.getLocalLock().getComment(); long lockCreationDate = status.getLocalLock().getCreationDate().getTime(); Lock reposLock = new Lock(lockOwner, status.getLocalLock().getPath(), lockToken, lockComment, lockCreationDate, status.getLocalLock().getExpirationDate().getTime());
Lock reposLock = null; String lockToken = ""; String lockOwner = ""; String lockComment = ""; long lockCreationDate = 0; if(status.getLocalLock() != null){ lockToken = status.getLocalLock().getID(); lockOwner = status.getLocalLock().getOwner(); lockComment = status.getLocalLock().getComment(); lockCreationDate = status.getLocalLock().getCreationDate().getTime(); reposLock = new Lock(lockOwner, status.getLocalLock().getPath(), lockToken, lockComment, lockCreationDate, status.getLocalLock().getExpirationDate().getTime()); }
    public static Status createStatus(String path, SVNStatus status) {        String url = "";        int nodeKind = getNodeKind(status.getKind());        if (status.getContentsStatus() == SVNStatusType.STATUS_IGNORED) {            nodeKind = NodeKind.unknown;        }        long revision = status.getRevision().getNumber();        long lastChangedRevision = status.getCommittedRevision().getNumber();        long lastChangedDate = status.getCommittedDate().getTime();        String lastCommitAuthor = status.getAuthor();        int textStatus = getStatusValue(status.getContentsStatus());        int propStatus = getStatusValue(status.getPropertiesStatus());        int repositoryTextStatus = getStatusValue(status.getRemoteContentsStatus());        int repositoryPropStatus = getStatusValue(status.getRemotePropertiesStatus());        boolean locked = status.isLocked();        boolean copied = status.isCopied();        boolean switched = status.isSwitched();                String conflictOld = status.getConflictOldFile().getAbsolutePath();        String conflictNew = status.getConflictNewFile().getAbsolutePath();        String conflictWorking = status.getConflictWrkFile().getAbsolutePath();        String urlCopiedFrom = status.getCopyFromURL();        long revisionCopiedFrom = status.getCopyFromRevision().getNumber();        String lockToken = status.getLocalLock().getID();        String lockOwner = status.getLocalLock().getOwner();        String lockComment = status.getLocalLock().getComment();        long lockCreationDate = status.getLocalLock().getCreationDate().getTime();        Lock reposLock = new Lock(lockOwner, status.getLocalLock().getPath(), lockToken, lockComment, lockCreationDate, status.getLocalLock().getExpirationDate().getTime());                Status st = new Status(path, url, nodeKind, revision, lastChangedRevision, lastChangedDate, lastCommitAuthor, textStatus, propStatus,                repositoryTextStatus, repositoryPropStatus, locked, copied, conflictOld, conflictNew, conflictWorking, urlCopiedFrom, revisionCopiedFrom,                switched, lockToken, lockOwner, lockComment, lockCreationDate, reposLock);        DebugLog.log(path + ": created status: " + st.getTextStatus() + ":" + st.getPropStatus() + ":" + st.getNodeKind());        return st;    }