From 473cd99e2f525705c5ee40ace606eda7d6934642 Mon Sep 17 00:00:00 2001 From: CTomlyn Date: Mon, 14 Oct 2024 10:27:07 -0700 Subject: [PATCH] =?UTF-8?q?#2201=20Cannot=20read=20properties=20of=20null?= =?UTF-8?q?=20(reading=20'x')=20when=20opening=20right=E2=80=A6=20(#2202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: CTomlyn --- .../common-canvas/src/common-canvas/svg-canvas-utils-zoom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-zoom.js b/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-zoom.js index 55f272741a..07223397ef 100644 --- a/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-zoom.js +++ b/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-zoom.js @@ -562,7 +562,8 @@ export default class SVGCanvasUtilsZoom { // zoomAction and zoomEnd. It does not perform a zoom if newZoomTransform // is the same as the current zoom transform. zoomCanvasInvokeZoomBehavior(newZoomTransform, animateTime) { - if (isFinite(newZoomTransform.x) && + if (newZoomTransform && + isFinite(newZoomTransform.x) && isFinite(newZoomTransform.y) && isFinite(newZoomTransform.k) && this.zoomHasChanged(newZoomTransform)) {