Skip to content

Commit cc17d24

Browse files
authored
Merge pull request #1132 from SilinMykola/1131-bug-fix-null-data-in-ModuleIndex-class
1131 fix bug null data in ModuleIndex class
2 parents 9bdd689 + a6265a1 commit cc17d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/indexes/ModuleIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private List<String> getNames(
121121
* @return PsiDirectory
122122
*/
123123
public @Nullable PsiDirectory getModuleDirectoryByModuleName(final String moduleName) {
124-
if (DumbService.getInstance(project).isDumb()) {
124+
if (DumbService.getInstance(project).isDumb() || moduleName == null) {
125125
return null;
126126
}
127127
final FileBasedIndex index = FileBasedIndex

0 commit comments

Comments
 (0)