diff --git a/src/featureconverter.js b/src/featureconverter.js index b7166ae59..66f6de749 100644 --- a/src/featureconverter.js +++ b/src/featureconverter.js @@ -1094,7 +1094,7 @@ olcs.FeatureConverter.prototype.convert = function(layer, view, feature, context const prims = this.olFeatureToCesium(layer, feature, styles[i], context); if (!primitives) { primitives = prims; - } else { + } else if (prims) { let i = 0, prim; while ((prim = prims.get(i))) { primitives.add(prim);