Skip to content
Permalink
Browse files
Add check for empty geom in QgsGeos::closestPoint (#45635)
  • Loading branch information
qgis-bot committed Oct 23, 2021
1 parent be6cb03 commit 74bf4cb795ba31cf6292c78d1e5d5206eafd796f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeos.cpp
@@ -2216,7 +2216,7 @@ QgsGeometry QgsGeos::mergeLines( QString *errorMsg ) const

QgsGeometry QgsGeos::closestPoint( const QgsGeometry &other, QString *errorMsg ) const
{
if ( !mGeos || isEmpty() || other.isNull() )
if ( !mGeos || isEmpty() || other.isEmpty() )
{
return QgsGeometry();
}

0 comments on commit 74bf4cb

Please sign in to comment.