Skip to content

Commit 355549a

Browse files
committed
Avoid creating unused sinks
1 parent e49cc78 commit 355549a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/processing/qgsprocessingparameters.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ QgsFeatureSink *QgsProcessingParameters::parameterAsSink( const QgsProcessingPar
244244
dest = val.toString();
245245
}
246246

247+
if ( dest.isEmpty() )
248+
return nullptr;
249+
247250
std::unique_ptr< QgsFeatureSink > sink( QgsProcessingUtils::createFeatureSink( dest, context, fields, geometryType, crs, createOptions ) );
248251
destinationIdentifier = dest;
249252

0 commit comments

Comments
 (0)