Skip to content

Commit 543df81

Browse files
committed
[processing] Fix potential crash when calling processing.run with
custom context, but no feedback object (cherry-picked from 977e14b)
1 parent 15ab4c1 commit 543df81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/plugins/processing/core/Processing.py

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
135135
if context is None:
136136
context = dataobjects.createContext(feedback)
137137

138+
if context.feedback() is None:
139+
context.setFeedback(feedback)
140+
138141
ok, msg = alg.checkParameterValues(parameters, context)
139142
if not ok:
140143
msg = Processing.tr('Unable to execute algorithm\n{0}').format(msg)

0 commit comments

Comments
 (0)