Skip to content

Commit

Permalink
[Viewer] Check if active node's "input" attribute exists before acces…
Browse files Browse the repository at this point in the history
…sing it
  • Loading branch information
cbentejac committed Feb 3, 2023
1 parent d21b70f commit 6579ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshroom/ui/qml/Viewer/Viewer2D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6579ed3

Please sign in to comment.