diff --git a/modules/load.js b/modules/load.js index 158488c9..e5b60ae7 100644 --- a/modules/load.js +++ b/modules/load.js @@ -824,6 +824,7 @@ function parseLoadedData(data) { const riverPoints = []; const length = node.getTotalLength() / 2; + if (!length) continue; const segments = Math.ceil(length / 6); const increment = length / segments;