Skip to content

Commit

Permalink
check for null polygon geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardonadcdev committed Oct 5, 2015
1 parent 0a6807b commit 8140de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/data/fill_bucket.js
Expand Up @@ -13,7 +13,10 @@ FillBucket.prototype.addFeatures = function() {
var features = this.features;
for (var i = 0; i < features.length; i++) {
var feature = features[i];
this.addFeature(feature.loadGeometry());
var geom = feature.loadGeometry();
if (geom) {
this.addFeature(geom);
}
}
};

Expand Down

0 comments on commit 8140de4

Please sign in to comment.