From 1b08cfa31077db53f859f7f4f02c733708a50028 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Fri, 28 Oct 2022 09:00:08 -0400 Subject: [PATCH] add check for empty orig gemo first comparison --- attribute_rule_calculation/SplitIntersectingLine.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/attribute_rule_calculation/SplitIntersectingLine.md b/attribute_rule_calculation/SplitIntersectingLine.md index 225ce79..568c29a 100644 --- a/attribute_rule_calculation/SplitIntersectingLine.md +++ b/attribute_rule_calculation/SplitIntersectingLine.md @@ -701,7 +701,7 @@ function get_first_new_vertex(new_geom, orig_geom) { var new_vertex = null; // Length of paths must be the same - if (Count(orig_geom.paths) != Count(orig_geom.paths)) { + if (Count(orig_geom.paths) != Count(new_geom.paths)) { return null; } for (var i in new_geom.paths) { @@ -734,7 +734,10 @@ function get_first_new_vertex(new_geom, orig_geom) { } var current_geom = Geometry($feature); -var orig_geom = Geometry($OriginalFeature); +var orig_geom = Geometry($originalFeature); +if (orig_gemo == null){ + return; +} if (Equals(orig_geom, current_geom)) { return