mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-03-27 22:18:34 +00:00
Make the same null pointer fix in jsontool.cpp as in geojson.cpp
This commit is contained in:
parent
2234e37883
commit
8ac7c46788
@ -380,7 +380,7 @@ void process(FILE *fp, const char *fname) {
|
||||
int is_geometry = 1;
|
||||
|
||||
if (j->parent != NULL) {
|
||||
if (j->parent->type == JSON_ARRAY) {
|
||||
if (j->parent->type == JSON_ARRAY && j->parent->parent != NULL) {
|
||||
if (j->parent->parent->type == JSON_HASH) {
|
||||
json_object *geometries = json_hash_get(j->parent->parent, "geometries");
|
||||
if (geometries != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user