Skip to content
Permalink
Browse files

QgsProcessingParameters::parameterAsSink(): add nullptr check for con…

…sistency
  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent ff86fa1 commit 0d9e06351282b2d330600ee3a0b7b795f7e56f0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/processing/qgsprocessingparameters.cpp
@@ -598,7 +598,7 @@ QgsFeatureSink *QgsProcessingParameters::parameterAsSink( const QgsProcessingPar
}

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

0 comments on commit 0d9e063

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