Skip to content

Commit

Permalink
QgsJoinWithLinesAlgorithm::processAlgorithm(): remove redundant nullp…
Browse files Browse the repository at this point in the history
…tr check
  • Loading branch information
rouault committed May 29, 2020
1 parent c70e180 commit 5e344c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmjoinwithlines.cpp
Expand Up @@ -116,7 +116,7 @@ QVariantMap QgsJoinWithLinesAlgorithm::processAlgorithm( const QVariantMap &para
throw QgsProcessingException( invalidSourceError( parameters, QStringLiteral( "HUBS" ) ) );

std::unique_ptr< QgsProcessingFeatureSource > spokeSource( parameterAsSource( parameters, QStringLiteral( "SPOKES" ), context ) );
if ( !hubSource || !spokeSource )
if ( !spokeSource )
throw QgsProcessingException( invalidSourceError( parameters, QStringLiteral( "SPOKES" ) ) );

QString fieldHubName = parameterAsString( parameters, QStringLiteral( "HUB_FIELD" ), context );
Expand Down

0 comments on commit 5e344c5

Please sign in to comment.