Skip to content
Permalink
Browse files

Don't crash on null geometries

  • Loading branch information
nyalldawson committed Oct 16, 2020
1 parent b4b2ec0 commit 5f67531d48bad3dfa22b45426bf2cd3c4b87e8f4
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsgeometryvalidator.cpp
@@ -243,15 +243,15 @@ void QgsGeometryValidator::validatePolygon( int idx, const QgsPolygon *polygon )
void QgsGeometryValidator::run()
{
mErrorCount = 0;
if ( mGeometry.isNull() )
{
return;
}

switch ( mMethod )
{
case QgsGeometry::ValidatorGeos:
{
if ( mGeometry.isNull() )
{
return;
}

// avoid calling geos for trivial point geometries
if ( QgsWkbTypes::geometryType( mGeometry.wkbType() ) == QgsWkbTypes::PointGeometry )
{

0 comments on commit 5f67531

Please sign in to comment.
You can’t perform that action at this time.