Skip to content

Commit ad2d944

Browse files
committedJul 22, 2014
[processin] fixed extent checking in saga algorithm
1 parent 8e60f49 commit ad2d944

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/algs/saga/SagaAlgorithm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,12 @@ def checkParameterValuesBeforeExecuting(self):
369369
"""
370370
extent = None
371371
for param in self.parameters:
372+
files = []
372373
if isinstance(param, ParameterRaster):
373374
files = [param.value]
374375
elif isinstance(param, ParameterMultipleInput) and param.datatype == ParameterMultipleInput.TYPE_RASTER:
375-
files = param.value.split(";")
376+
if param.value is not None:
377+
files = param.value.split(";")
376378
for f in files:
377379
layer = dataobjects.getObjectFromUri(f)
378380
if layer is None:

0 commit comments

Comments
 (0)
Please sign in to comment.