Ver código fonte

Fixed null crash

flabbet 7 meses atrás
pai
commit
697230397b
1 arquivos alterados com 5 adições e 0 exclusões
  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;