Skip to content

Commit 8a69a45

Browse files
committed
don't crash on geometryless wfs features
(cherry picked from commit 6a019ad)
1 parent ab06ccd commit 8a69a45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/qgsgml.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ void QgsGml::endElement( const XML_Char* el )
369369
if ( mCurrentWKBSize > 0 )
370370
{
371371
mCurrentFeature->setGeometryAndOwnership( mCurrentWKB, mCurrentWKBSize );
372+
mCurrentWKB = 0;
372373
}
373374
else if ( !mCurrentExtent.isEmpty() )
374375
{

0 commit comments

Comments
 (0)