Skip to content

Commit

Permalink
Merge pull request #484 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 24, 2017
2 parents b38f080 + a9af972 commit 315bae2
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 @@ -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);
Expand Down

0 comments on commit 315bae2

Please sign in to comment.