mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-31 00:04:24 -05:00
QgsExportMeshOnElement::processAlgorithm(): avoid potential nullptr deref in error code path
This commit is contained in:
parent
34bfa8fc9c
commit
a02ed45d2b
@ -367,7 +367,8 @@ QVariantMap QgsExportMeshOnElement::processAlgorithm( const QVariantMap ¶met
|
||||
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 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user