Skip to content
Permalink
Browse files

Protect processing parameters from segfault

  • Loading branch information
marioba committed Aug 6, 2017
1 parent b5c2253 commit 558b8d339587991d32d77cfd338a0e8b2177aa57
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 558b8d3

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