From 7688c59a22d0bf3d85e5207c472bb0e2009bd50d Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 20 Feb 2014 19:13:20 +0400 Subject: [PATCH] Fixed application crash on missing task params --- BuildServer/lib/task-processor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildServer/lib/task-processor.js b/BuildServer/lib/task-processor.js index 99f2782..218bb03 100644 --- a/BuildServer/lib/task-processor.js +++ b/BuildServer/lib/task-processor.js @@ -43,7 +43,7 @@ var TaskProcessor = function (task, outerProcessor, callback) { self.context = outerProcessor.context; taskImpl = require('./tasks/' + task.type.match(/[\w\-]/g).join("")); - taskWorker = taskImpl(task.params, self); + taskWorker = taskImpl(task.params || {}, self); }; exports.processTask = function (task, context, callback) {