File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/com/magento/idea/magento2plugin/project/diagnostic/github Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static String buildNewBugReportBody(
4242 final @ NotNull String stackTrace ,
4343 final int maxAllowedBodyLength
4444 ) {
45- final int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
45+ int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
4646 project ,
4747 bugDescription ,
4848 maxAllowedBodyLength
@@ -56,6 +56,9 @@ public static String buildNewBugReportBody(
5656 String encodedCutStackTrace = "" ;
5757
5858 while (!isFound ) {
59+ if (stackTrace .length () < maxAllowedStackTraceLength ) {
60+ maxAllowedStackTraceLength = stackTrace .length ();
61+ }
5962 final String cutStackTrace = stackTrace .substring (0 , maxAllowedStackTraceLength - step );
6063 encodedCutStackTrace = encode (cutStackTrace );
6164
You can’t perform that action at this time.
0 commit comments