Ticket #2212 (closed defect: fixed)
GeoJSON driver crashes when writing features with NULL geometry
| Reported by: | rouault | Owned by: | mloskot |
|---|---|---|---|
| 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
Note: See
TracTickets for help on using
tickets.
