catch INRE in usage view update (EA-64996 - INRE: FileBasedIndexImpl.handleDumbMode)
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 12:18:34 +0000 (13:18 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:45 +0000 (16:18 +0100)
platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java

index f74093aca48c38951dcfaed5604c117d866370b4..8bee9f433d01df43321720e0e70f95691622ba50 100644 (file)
@@ -31,6 +31,7 @@ import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.progress.Task;
 import com.intellij.openapi.progress.util.ProgressWrapper;
 import com.intellij.openapi.progress.util.TooManyUsagesStatus;
+import com.intellij.openapi.project.IndexNotReadyException;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.Messages;
 import com.intellij.openapi.ui.SimpleToolWindowPanel;
@@ -1068,9 +1069,12 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
 
 
   private void updateOnSelectionChanged() {
-    List<UsageInfo> infos = getSelectedUsageInfos();
     if (myCurrentUsageContextPanel != null) {
-      myCurrentUsageContextPanel.updateLayout(infos);
+      try {
+        myCurrentUsageContextPanel.updateLayout(getSelectedUsageInfos());
+      }
+      catch (IndexNotReadyException ignore) {
+      }
     }
   }