From b2b79396daa1cf1b33c72a58bd7d109b09cf9329 Mon Sep 17 00:00:00 2001 From: Pablo Gamito Date: Wed, 2 Sep 2020 20:39:57 +0200 Subject: [PATCH] Only change video frame on zooming if video is present Test: Move around the trace without a video and make sure there are no errors Change-Id: Ia87e97c7d731fc28aa3f8c9d4681db9b75bb6ad6 --- tools/winscope/src/Overlay.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/winscope/src/Overlay.vue b/tools/winscope/src/Overlay.vue index 477aa73dd..defa38b10 100644 --- a/tools/winscope/src/Overlay.vue +++ b/tools/winscope/src/Overlay.vue @@ -553,9 +553,15 @@ export default { this.cropIntent = cropIntent; }, changeVideoTimestamp(ts) { + if (!this.$refs.video) { + return; + } this.$refs.video.selectFrameAtTime(ts); }, resetVideoTimestamp() { + if (!this.$refs.video) { + return; + } this.$refs.video.jumpToSelectedIndex(); }, },