Skip to content

Commit

Permalink
fix invalid destination source check
Browse files Browse the repository at this point in the history
  • Loading branch information
root676 authored and nyalldawson committed Oct 24, 2021
1 parent 9b57e63 commit 8577f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmshortestline.cpp
Expand Up @@ -87,7 +87,7 @@ bool QgsShortestLineAlgorithm::prepareAlgorithm( const QVariantMap &parameters,
throw QgsProcessingException( invalidSourceError( parameters, QStringLiteral( "SOURCE" ) ) );

mDestination.reset( parameterAsSource( parameters, QStringLiteral( "DESTINATION" ), context ) );
if ( !mSource )
if ( !mDestination )
throw QgsProcessingException( invalidSourceError( parameters, QStringLiteral( "DESTINATION" ) ) );

mMethod = parameterAsInt( parameters, QStringLiteral( "METHOD" ), context );
Expand Down

0 comments on commit 8577f5f

Please sign in to comment.