Skip to content

Commit 03e582c

Browse files
authored
Merge branch 'magento:4.4.0-develop' into 1128-fix-bug-with-index-in-GitHubNewIssueBodyBuilderUtil
2 parents dcb5f76 + eb44d8f commit 03e582c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/magento/idea/magento2plugin/actions/generation/dialog/OverrideClassByAPreferenceDialog.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private void suggestPreferenceDirectory(final PhpClass targetClass) {
146146
if (fqnParts.length != 0) {
147147
fqnParts = ArrayUtil.remove(fqnParts, fqnParts.length - 1);
148148
}
149-
if (fqnParts[1] != null) {
149+
if (fqnParts.length > 1 && fqnParts[1] != null) {
150150
fqnParts = ArrayUtil.remove(fqnParts, 1);
151151
}
152152
if (fqnParts[0] != null) {

0 commit comments

Comments
 (0)