From 5e2611f41067ba5870aba733449714f6176356b6 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 18 Sep 2018 00:42:30 +0200 Subject: [PATCH] check for nulls on videodata/panhandler --- js/lib/VideoData.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lib/VideoData.js b/js/lib/VideoData.js index 9bf2481..08f99f9 100644 --- a/js/lib/VideoData.js +++ b/js/lib/VideoData.js @@ -111,6 +111,10 @@ class VideoData { } panHandler(event) { + if(!this.resizer) { + this.destroy(); + return; + } this.resizer.panHandler(event); }