EA-66225 diff: fix NPE

This commit is contained in:
Aleksey Pivovarov
2015-03-12 12:41:25 +03:00
parent 33cfd8fdd2
commit 6eda4582dd
@@ -57,8 +57,7 @@ public class ChangeForDiffConvertor implements Convertor<Change, DiffRequestPres
}
if (ChangesUtil.isTextConflictingChange(ch)) {
final AbstractVcs vcs = ChangesUtil.getVcsForChange(ch, myProject);
final MergeProvider mergeProvider = vcs.getMergeProvider();
if (mergeProvider == null) return null;
if (vcs == null || vcs.getMergeProvider() == null) return null;
final FilePath path = ChangesUtil.getFilePath(ch);
VirtualFile vf = path.getVirtualFile();
if (vf == null) {