diff --git a/src/core/geometry/qgsgeos.cpp b/src/core/geometry/qgsgeos.cpp index 8ff1725ac28..5e0c2855783 100644 --- a/src/core/geometry/qgsgeos.cpp +++ b/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(); }