Fix null pointer crash when looking for feature extent in filter output

This commit is contained in:
Eric Fischer
2018-10-22 13:26:53 -07:00
parent e18748e29b
commit 0acdeef525
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ serial_feature parse_feature(json_pull *jp, int z, unsigned x, unsigned y, std::
}
json_object *extent = json_hash_get(tippecanoe, "extent");
if (extent != NULL && sequence->type == JSON_NUMBER) {
if (extent != NULL && extent->type == JSON_NUMBER) {
sf.extent = extent->number;
}