diff: do not show 'contents identical' if we can't calculate diff
[idea/community.git] / platform / platform-impl / src / com / intellij / openapi / diff / impl / highlighting / SimpleDiffPanelState.java
index d3e1dfd5a64a4b793f007d0c943b11144cc0cbef..fc26cf634e8833c58f42d0c55690d2939d329222 100644 (file)
@@ -28,6 +28,7 @@ import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.Disposer;
 import com.intellij.util.diff.FilesTooBigForDiffException;
 import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
 
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -108,10 +109,11 @@ public abstract class SimpleDiffPanelState implements Disposable  {
     ApplicationManager.getApplication().runWriteAction(new ResetMarkupRunnable(this));
   }
 
+  @Nullable
   public LineBlocks updateEditors() throws FilesTooBigForDiffException {
     resetMarkup();
     if (myAppender1.getEditor() == null || myAppender2.getEditor() == null) {
-      return LineBlocks.EMPTY;
+      return null;
     }
 
     return addMarkup(