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.
2 parents e4be0b9 + bd79e8c commit 49be8d4Copy full SHA for 49be8d4
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