From b05c5a95832b5c7ef88a037dac69762ffb5a5280 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 12 Nov 2014 12:19:39 -0800 Subject: [PATCH] Skip over properties with null values instead of considering it an error --- geojson.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geojson.c b/geojson.c index c3d2023..bd66d7d 100644 --- a/geojson.c +++ b/geojson.c @@ -420,6 +420,8 @@ void read_json(FILE *f, char *fname, char *layername, int maxzoom, int minzoom, metatype[m] = VT_BOOLEAN; metaval[m] = properties->values[i]->string; m++; + } else if (properties->values[i] != NULL && (properties->values[i]->type == JSON_NULL)) { + ; } else { fprintf(stderr, "%s:%d: Unsupported property type for %s\n", fname, jp->line, properties->keys[i]->string); goto next_feature;