diff: avoid possible issues with disposed RequestProcessor
[idea/community.git] / platform / diff-impl / src / com / intellij / diff / impl / CacheDiffRequestChainProcessor.java
index 8e37522288eb452a1315abb1769cc3248b12311c..5f609e50036f51f984cee5e9af81e41734e44cb0 100644 (file)
@@ -75,6 +75,8 @@ public abstract class CacheDiffRequestChainProcessor extends DiffRequestProcesso
 
   @CalledInAwt
   public void updateRequest(final boolean force, boolean useCache, @Nullable final ScrollToPolicy scrollToChangePolicy) {
+    if (isDisposed()) return;
+
     List<? extends DiffRequestProducer> requests = myRequestChain.getRequests();
     int index = myRequestChain.getIndex();
     if (index < 0 || index >= requests.size()) {