Skip to content

Commit

Permalink
Manage null value of prims variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogis IWI committed Aug 24, 2017
1 parent b38f080 commit a9af972
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 a9af972

Please sign in to comment.