Skip to content
Permalink
Browse files
fix invalid destination source check
  • Loading branch information
root676 authored and nyalldawson committed Oct 24, 2021
1 parent 9b57e63 commit 8577f5f3065e263c57ba7276892fa1b667eba18b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmshortestline.cpp
@@ -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 );

0 comments on commit 8577f5f

Please sign in to comment.