Skip to content
Permalink
Browse files
QgsExportMeshOnElement::processAlgorithm(): avoid potential nullptr d…
…eref in error code path
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent 34bfa8f commit a02ed45d2bec8febbb251f2e48c099ee773cab89
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/analysis/processing/qgsalgorithmexportmesh.cpp
@@ -367,7 +367,8 @@ QVariantMap QgsExportMeshOnElement::processAlgorithm( const QVariantMap &paramet
catch ( QgsCsException & )
{
geom = meshElement( i );
feedback->reportError( QObject::tr( "Could not transform point to destination CRS" ) );
if ( feedback )
feedback->reportError( QObject::tr( "Could not transform point to destination CRS" ) );
}
feat.setGeometry( geom );
feat.setAttributes( attributes );

0 comments on commit a02ed45

Please sign in to comment.