Skip to content

Commit 980b104

Browse files
committed
Fix #9609 (crash with WFS)
1 parent 3e98d7d commit 980b104

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsgml.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ void QgsGml::endElement( const XML_Char* el )
393393
//error
394394
}
395395

396+
if ( pointList.count() == 0 )
397+
return; // error
398+
396399
if ( theParseMode == QgsGml::geometry )
397400
{
398401
//directly add WKB point to the feature

0 commit comments

Comments
 (0)