Fix logic issue in CrashReportCategory patch, blame Jadedcat for sloppy quick patch.
This commit is contained in:
parent
74742fd12f
commit
2d84dcd44e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
+ int len = astacktraceelement.length - 3 - par1;
|
+ int len = astacktraceelement.length - 3 - par1;
|
||||||
+ if (len <= 0) len = astacktraceelement.length;
|
+ if (len <= 0) len = astacktraceelement.length;
|
||||||
+ this.stackTrace = new StackTraceElement[len];
|
+ this.stackTrace = new StackTraceElement[len];
|
||||||
+ System.arraycopy(astacktraceelement, len, this.stackTrace, 0, this.stackTrace.length);
|
+ System.arraycopy(astacktraceelement, astacktraceelement.length - len, this.stackTrace, 0, this.stackTrace.length);
|
||||||
return this.stackTrace.length;
|
return this.stackTrace.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue