Skip to content

Commit a93daf1

Browse files
committed
[processing] Throw exception when combining clip geometry fails in clip alg
1 parent b18aaae commit a93daf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/analysis/processing/qgsalgorithmclip.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ QVariantMap QgsClipAlgorithm::processAlgorithm( const QVariantMap &parameters, Q
105105
if ( clipGeoms.length() > 1 )
106106
{
107107
combinedClipGeom = QgsGeometry::unaryUnion( clipGeoms );
108+
if ( combinedClipGeom.isEmpty() )
109+
{
110+
throw QgsProcessingException( QObject::tr( "Could not create the combined clip geometry: %1" ).arg( combinedClipGeom.lastError() ) );
111+
}
108112
singleClipFeature = false;
109113
}
110114
else

0 commit comments

Comments
 (0)