Skip to content

Commit dcb5f76

Browse files
author
SilinMykola
committed
1128 fix bug with index in GitHubNewIssueBodyBuilderUtil class
1 parent 431a2e4 commit dcb5f76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/com/magento/idea/magento2plugin/project/diagnostic/github/GitHubNewIssueBodyBuilderUtil.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ public static String buildNewBugReportBody(
6464
} else {
6565
step += 10;
6666
}
67+
final int index = maxAllowedStackTraceLength - step;
68+
69+
if (index > stackTrace.length() || index - step < 0) {
70+
isFound = true;
71+
}
6772
}
6873

6974
return buildTemplate(project, bugDescription, decode(encodedCutStackTrace));

0 commit comments

Comments
 (0)