mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 15:00:17 +00:00
[Bug]: 双击测试报告内的曲线图,SP应用闪退
Signed-off-by: hanlibin <hanlibin3@huawei.com>
This commit is contained in:
parent
72a65fdd47
commit
913ddc1887
@ -236,7 +236,14 @@ export class PathViewModel extends ScaleMode {
|
||||
|
||||
this.ondraw();
|
||||
|
||||
let maxXAfter: number = this.paintArry[this.paintArry.length - 1].x;
|
||||
let maxXAfter: number = 0;
|
||||
try {
|
||||
if(this.paintArry.length > 0) {
|
||||
maxXAfter = this.paintArry[this.paintArry.length - 1].x;
|
||||
}
|
||||
} catch(e) {
|
||||
console.log(e);
|
||||
}
|
||||
let maxYAfter: number = Number.MIN_VALUE;
|
||||
let minYAfter: number = Number.MAX_VALUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user