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 e4be0b9 commit bd79e8cCopy full SHA for bd79e8c
src/com/magento/idea/magento2plugin/util/magento/GetModuleNameByDirectoryUtil.java
@@ -44,7 +44,11 @@ private GetModuleNameByDirectoryUtil() {}
44
final String moduleNamePath = matcher.group(0);
45
46
if (!moduleNamePath.isEmpty()) {
47
- return moduleNamePath.split("/")[5];
+ final String[] moduleNamePathParts = moduleNamePath.split("/");
48
+
49
+ if (moduleNamePathParts.length >= 6) { //NOPMD
50
+ return moduleNamePath.split("/")[5];
51
+ }
52
}
53
54
0 commit comments