Open brianreavis opened 8 years ago
Allowed by GeoJSON spec: http://geojson.org/geojson-spec.html#feature-objects
Without this patch, calling turf-extent on a FeatureCollection that has a feature with a null geometry will throw an error: Uncaught TypeError: Cannot read property 'type' of null
Uncaught TypeError: Cannot read property 'type' of null
Allowed by GeoJSON spec: http://geojson.org/geojson-spec.html#feature-objects
Without this patch, calling turf-extent on a FeatureCollection that has a feature with a null geometry will throw an error:
Uncaught TypeError: Cannot read property 'type' of null