Fixed application crash on missing task params

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent eaf09a7720
commit 7688c59a22
  1. 2
      BuildServer/lib/task-processor.js

@ -43,7 +43,7 @@ var TaskProcessor = function (task, outerProcessor, callback) {
self.context = outerProcessor.context; self.context = outerProcessor.context;
taskImpl = require('./tasks/' + task.type.match(/[\w\-]/g).join("")); 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) { exports.processTask = function (task, context, callback) {

Loading…
Cancel
Save