Skip to content

Commit 76abb78

Browse files
author
jef
committed
fix #2090
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12278 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 17d142d commit 76abb78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/qgsvectorfilewriter.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ bool QgsVectorFileWriter::addFeature( QgsFeature& feature )
266266

267267
// build geometry from WKB
268268
QgsGeometry *geom = feature.geometry();
269+
if ( !geom )
270+
{
271+
QgsDebugMsg( "invalid geometry" );
272+
OGR_F_Destroy( poFeature );
273+
return false;
274+
}
269275

270276
if ( geom->wkbType() != mWkbType )
271277
{

0 commit comments

Comments
 (0)