Skip to content

Commit f593a43

Browse files
author
Olivier Courtin
committed
Fix #76
1 parent e69e536 commit f593a43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wfs/wfs_get_feature.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,8 @@ static void wfs_geojson_display_results(ows * o, wfs_request * wr, mlist * reque
806806

807807
prop_table = ows_psql_describe_table(o, ll->value);
808808
first_row = true;
809-
buffer_copy(id_name, ows_psql_id_column(o, ll->value));
809+
if(ows_psql_id_column(o, ll->value)) /* CAUTION: pkey could be NULL ! */
810+
buffer_copy(id_name, ows_psql_id_column(o, ll->value));
810811
number = -1;
811812
if (id_name && id_name->use)
812813
number = PQfnumber(res, id_name->buf);

0 commit comments

Comments
 (0)