Skip to content
Permalink
Browse files
Add check for empty geom in QgsGeos::closestPoint (#45627)
  • Loading branch information
s-knibbs committed Oct 23, 2021
1 parent b56e861 commit 835f6d35f291ece6159e156588eb28bbe5aaa20b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeos.cpp
@@ -2510,7 +2510,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 835f6d3

Please sign in to comment.