Skip to content
Permalink
Browse files

Merge pull request #4991 from marioba/fix_processing_parameters

Protect processing parameters from segfault
  • Loading branch information
nyalldawson committed Aug 6, 2017
2 parents f6bc74c + 558b8d3 commit 37bc07a8d4c1d2635a67c55ffa3f4fe47ebb35b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/processing/qgsprocessingparameters.cpp
@@ -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();

0 comments on commit 37bc07a

Please sign in to comment.
You can’t perform that action at this time.