Skip to content
Browse files
[processing] Fix potential crash when calling with
custom context, but no feedback object
  • Loading branch information
nyalldawson committed Jun 28, 2018
1 parent 73eb762 commit 977e14b05859931e7e87792e594b401edba9fd85
Showing 1 changed file with 3 additions and 0 deletions.
@@ -135,6 +135,9 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
if context is None:
context = dataobjects.createContext(feedback)

if is None:

ok, msg = alg.checkParameterValues(parameters, context)
if not ok:
msg ='Unable to execute algorithm\n{0}').format(msg)

0 comments on commit 977e14b

Please sign in to comment.