Skip to content

Commit

Permalink
Merge pull request #485 from oterral/fix_null_prim
Browse files Browse the repository at this point in the history
Manage null value of prims variable
  • Loading branch information
gberaudo authored Aug 25, 2017
2 parents 315bae2 + 55b7867 commit 434e5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featureconverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 434e5e1

Please sign in to comment.