Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 a02ed45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmexportmesh.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit a02ed45

Please sign in to comment.