Opened 15 years ago

Closed 15 years ago

#2212 closed defect (fixed)

GeoJSON driver crashes when writing features with NULL geometry

Reported by: Even Rouault Owned by: Mateusz Łoskot
Priority: normal Milestone:
Component: OGR_SF Version: 1.5.0
Severity: normal Keywords: geojson
Cc:

Description

In OGRGeoJSONWriteFeature, there's the following code :

    OGRGeometry* poGeometry = poFeature->GetGeometryRef();
    CPLAssert( NULL != poGeometry );

The CPLAssert should probably be replaced by a 'if'.

Change History (2)

comment:1 by Mateusz Łoskot, 15 years ago

Status: newassigned

comment:2 by Mateusz Łoskot, 15 years ago

Resolution: fixed
Status: assignedclosed

Thanks Even for reporting this issue. I've fixed it in the trunk (r13754)

Note: See TracTickets for help on using tickets.