Skip to content

Commit 37bc07a

Browse files
authoredAug 6, 2017
Merge pull request #4991 from marioba/fix_processing_parameters
Protect processing parameters from segfault
2 parents f6bc74c + 558b8d3 commit 37bc07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/processing/qgsprocessingparameters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ QString QgsProcessingParameters::parameterAsOutputLayer( const QgsProcessingPara
391391
{
392392
dest = val.value< QgsProperty >().valueAsString( context.expressionContext(), definition->defaultValue().toString() );
393393
}
394-
else if ( !val.isValid() || val.toString().isEmpty() )
394+
else if ( definition && ( !val.isValid() || val.toString().isEmpty() ) )
395395
{
396396
// fall back to default
397397
dest = definition->defaultValue().toString();

0 commit comments

Comments
 (0)
Please sign in to comment.