QgsExportMeshOnElement::processAlgorithm(): avoid potential nullptr deref in error code path

This commit is contained in:
Even Rouault 2021-07-21 23:43:10 +02:00 committed by Nyall Dawson
parent 34bfa8fc9c
commit a02ed45d2b

View File

@ -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 );