Skip to content

Commit

Permalink
Fixed possible crash in point handles in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 4, 2024
1 parent ade71ef commit f9d677b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void EveryFrameUpdate(PositionedObject item, SelectionMarker selectionMar
{
var element = ObjectFinder.Self.GetElement(elementName);

var pointsTunneled = element?.CustomVariables.FirstOrDefault(varItem => varItem.SourceObjectProperty == "Points");
var pointsTunneled = element?.CustomVariables?.FirstOrDefault(varItem => varItem.SourceObjectProperty == "Points");
if (pointsTunneled != null)
{
var namedObject = element.GetNamedObject(pointsTunneled.SourceObject);
Expand Down

0 comments on commit f9d677b

Please sign in to comment.