Skip to content

Commit

Permalink
Update ConnectorViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyashish committed Jun 10, 2024
1 parent 56f13e7 commit b670172
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/DynamoCoreWpf/ViewModels/Core/ConnectorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using Dynamo.Graph.Connectors;
using Dynamo.Graph.Nodes;
using Dynamo.Utilities;
using Dynamo.UI.Commands;

using Point = System.Windows.Point;
using Dynamo.Selection;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Threading;
using System.Windows.Shapes;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Threading;
using Dynamo.Graph;
using Dynamo.Graph.Connectors;
using Dynamo.Graph.Nodes;
using Dynamo.Selection;
using Dynamo.UI.Commands;
using Dynamo.Utilities;
using DynCmd = Dynamo.Models.DynamoModel;
using Dynamo.Models;
using Point = System.Windows.Point;

namespace Dynamo.ViewModels
{
Expand Down Expand Up @@ -1417,7 +1415,7 @@ internal List<Point> CollectPinLocations()
/// </summary>
public void Redraw()
{
if (this.ConnectorModel.End != null && ConnectorPinViewCollection.Count > 0)
if (this.ConnectorModel?.End != null && ConnectorPinViewCollection?.Count > 0)
{
RedrawBezierManyPoints();
}
Expand Down

0 comments on commit b670172

Please sign in to comment.