diff --git a/src/rb/PostReviewAction.java b/src/rb/PostReviewAction.java index c40f55c..a8827d6 100644 --- a/src/rb/PostReviewAction.java +++ b/src/rb/PostReviewAction.java @@ -113,6 +113,13 @@ private void execute(final Project project, SvnVcs svnVcs, VirtualFile[] vFiles, if (vf != null) { vf.refresh(false, true); File workingCopyRoot = SvnUtil.getWorkingCopyRoot(new File(vf.getPath())); + if (workingCopyRoot == null) { + workingCopyRoot = SvnUtil.getWorkingCopyRootNew(new File(vf.getPath())); + } + if (workingCopyRoot == null) { + Messages.showWarningDialog("Cann't get working copy root of the file:" + vf.getPath(), "Error"); + return; + } System.out.println("workcopyroot:" + workingCopyRoot); if (localRootDir == null && workingCopyRoot != null) { localRootDir = workingCopyRoot.getPath();