From a9af9724f1a9411c019d21e758ca1ac3e41b1060 Mon Sep 17 00:00:00 2001 From: Kogis IWI Date: Thu, 24 Aug 2017 13:49:55 +0200 Subject: [PATCH] Manage null value of prims variable --- src/featureconverter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/featureconverter.js b/src/featureconverter.js index a235749f8..b7166ae59 100644 --- a/src/featureconverter.js +++ b/src/featureconverter.js @@ -1025,7 +1025,7 @@ olcs.FeatureConverter.prototype.olVectorLayerToCesium = function(olLayer, olView if (prims) { if (!primitives) { primitives = prims; - } else { + } else if (prims) { let i = 0, prim; while ((prim = prims.get(i))) { primitives.add(prim);