Skip to content

Commit

Permalink
QgsProcessingParameters::parameterAsSink(): add nullptr check for con…
Browse files Browse the repository at this point in the history
…sistency
  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent ff86fa1 commit 0d9e063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -598,7 +598,7 @@ QgsFeatureSink *QgsProcessingParameters::parameterAsSink( const QgsProcessingPar
} }


QString dest; QString dest;
if ( val.canConvert<QgsProperty>() ) if ( definition && val.canConvert<QgsProperty>() )
{ {
dest = val.value< QgsProperty >().valueAsString( context.expressionContext(), definition->defaultValue().toString() ); dest = val.value< QgsProperty >().valueAsString( context.expressionContext(), definition->defaultValue().toString() );
} }
Expand Down

0 comments on commit 0d9e063

Please sign in to comment.