File tree 1 file changed +4
-1
lines changed
src/com/magento/idea/magento2plugin/project/diagnostic/github 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(
42
42
final @ NotNull String stackTrace ,
43
43
final int maxAllowedBodyLength
44
44
) {
45
- final int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
45
+ int maxAllowedStackTraceLength = getMaxAllowedStackTraceLength (
46
46
project ,
47
47
bugDescription ,
48
48
maxAllowedBodyLength
@@ -56,6 +56,9 @@ public static String buildNewBugReportBody(
56
56
String encodedCutStackTrace = "" ;
57
57
58
58
while (!isFound ) {
59
+ if (stackTrace .length () < maxAllowedStackTraceLength ) {
60
+ maxAllowedStackTraceLength = stackTrace .length ();
61
+ }
59
62
final String cutStackTrace = stackTrace .substring (0 , maxAllowedStackTraceLength - step );
60
63
encodedCutStackTrace = encode (cutStackTrace );
61
64
You can’t perform that action at this time.
0 commit comments