From 2c5f80aff4ed4453b8a8132ef32f1577ac1ac19f Mon Sep 17 00:00:00 2001 From: m-schuetz Date: Fri, 31 Jul 2020 18:23:15 +0200 Subject: [PATCH] fix exception when multi-segment profile request returns a segment without new points --- src/viewer/profile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/viewer/profile.js b/src/viewer/profile.js index 354d6eed..d32394db 100644 --- a/src/viewer/profile.js +++ b/src/viewer/profile.js @@ -711,6 +711,10 @@ export class ProfileWindow extends EventDispatcher { addPoints (pointcloud, points) { + if(points.numPoints === 0){ + return; + } + let entry = this.pointclouds.get(pointcloud); if(!entry){ entry = new ProfileFakeOctree(pointcloud);