File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/com/magento/idea/magento2plugin/indexes Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 55
66package com .magento .idea .magento2plugin .indexes ;
77
8+ import com .intellij .openapi .project .DumbService ;
89import com .intellij .openapi .project .Project ;
910import com .intellij .openapi .vfs .VfsUtilCore ;
1011import com .intellij .openapi .vfs .VirtualFile ;
@@ -118,8 +119,12 @@ private List<String> getNames(
118119 * @return PsiDirectory
119120 */
120121 public @ Nullable PsiDirectory getModuleDirectoryByModuleName (final String moduleName ) {
122+ if (DumbService .getInstance (project ).isDumb ()) {
123+ return null ;
124+ }
121125 final FileBasedIndex index = FileBasedIndex
122126 .getInstance ();
127+
123128 final Collection <VirtualFile > files = index .getContainingFiles (
124129 ModuleNameIndex .KEY ,
125130 moduleName ,
You can’t perform that action at this time.
0 commit comments