don't create run configurations in dumb mode (EA-65016 - INRE: FileBasedIndexImpl...
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 11:43:46 +0000 (12:43 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:42 +0000 (16:18 +0100)
platform/lang-api/src/com/intellij/execution/actions/ConfigurationContext.java

index bf8cffe0b36e2aadceae5b1e08d67f215bb580fe..095cb37707a37d9fc2e336822db400fe11aa37b1 100644 (file)
@@ -33,6 +33,7 @@ import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.editor.Editor;
 import com.intellij.openapi.extensions.Extensions;
 import com.intellij.openapi.module.Module;
+import com.intellij.openapi.project.DumbService;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.Comparing;
 import com.intellij.openapi.util.Key;
@@ -116,7 +117,7 @@ public class ConfigurationContext {
   private void createConfiguration() {
     LOG.assertTrue(myConfiguration == null);
     final Location location = getLocation();
-    myConfiguration = location != null ?
+    myConfiguration = location != null && !DumbService.isDumb(location.getProject()) ?
         PreferredProducerFind.createConfiguration(location, this) :
         null;
   }