mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Protect processing parameters from segfault
This commit is contained in:
parent
b5c2253f0d
commit
558b8d3395
@ -391,7 +391,7 @@ QString QgsProcessingParameters::parameterAsOutputLayer( const QgsProcessingPara
|
||||
{
|
||||
dest = val.value< QgsProperty >().valueAsString( context.expressionContext(), definition->defaultValue().toString() );
|
||||
}
|
||||
else if ( !val.isValid() || val.toString().isEmpty() )
|
||||
else if ( definition && ( !val.isValid() || val.toString().isEmpty() ) )
|
||||
{
|
||||
// fall back to default
|
||||
dest = definition->defaultValue().toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user