We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 703fc13 commit 4c93c3fCopy full SHA for 4c93c3f
src/com/magento/idea/magento2plugin/indexes/ModuleIndex.java
@@ -5,6 +5,7 @@
5
6
package com.magento.idea.magento2plugin.indexes;
7
8
+import com.intellij.openapi.project.DumbService;
9
import com.intellij.openapi.project.Project;
10
import com.intellij.openapi.vfs.VfsUtilCore;
11
import com.intellij.openapi.vfs.VirtualFile;
@@ -120,6 +121,10 @@ private List<String> getNames(
120
121
public @Nullable PsiDirectory getModuleDirectoryByModuleName(final String moduleName) {
122
final FileBasedIndex index = FileBasedIndex
123
.getInstance();
124
+
125
+ if (DumbService.getInstance(project).isDumb()) {
126
+ return null;
127
+ }
128
final Collection<VirtualFile> files = index.getContainingFiles(
129
ModuleNameIndex.KEY,
130
moduleName,
0 commit comments