Skip to content
Permalink
Browse files

Avoid creating unused sinks

  • Loading branch information
nyalldawson committed Jun 11, 2017
1 parent e49cc78 commit 355549ad19c2b0b4d5be013f01787926a24d7e0d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/processing/qgsprocessingparameters.cpp
@@ -244,6 +244,9 @@ QgsFeatureSink *QgsProcessingParameters::parameterAsSink( const QgsProcessingPar
dest = val.toString();
}

if ( dest.isEmpty() )
return nullptr;

std::unique_ptr< QgsFeatureSink > sink( QgsProcessingUtils::createFeatureSink( dest, context, fields, geometryType, crs, createOptions ) );
destinationIdentifier = dest;

0 comments on commit 355549a

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