Browse Source

Fixed null crash

flabbet 7 months ago
parent
commit
697230397b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/PixiEditor/Views/Nodes/NodeGraphView.cs

+ 5 - 0
src/PixiEditor/Views/Nodes/NodeGraphView.cs

@@ -582,6 +582,11 @@ internal class NodeGraphView : Zoombox.Zoombox
 
     private void UpdateConnections(NodeView nodeView)
     {
+        if(nodeView == null)
+        {
+            return;
+        }
+        
         foreach (NodePropertyView propertyView in nodeView.GetVisualDescendants().OfType<NodePropertyView>())
         {
             NodePropertyViewModel property = (NodePropertyViewModel)propertyView.DataContext;