From 6579ed3797dc9f04c5e9ab39720f9936425b2914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Fri, 3 Feb 2023 10:58:16 +0100 Subject: [PATCH] [Viewer] Check if active node's "input" attribute exists before accessing it --- meshroom/ui/qml/Viewer/Viewer2D.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index 3829648d32..27b98d2f58 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -1003,9 +1003,9 @@ FocusScope { { return true; } - var inputAttr = activeNode.attribute("input"); - if(!inputAttr) + if(!activeNode.hasAttribute("input")) return false; + var inputAttr = activeNode.attribute("input"); var inputAttrLink = inputAttr.rootLinkParam; if(!inputAttrLink) return false;