From 11369a47e37419a8ef71b99f221f6f1dabcbf6c9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 22 Mar 2024 18:08:55 +0300 Subject: Fix crashing of build task handler --- mod/mod-build-task.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx index b0b74b1..29f3783 100644 --- a/mod/mod-build-task.cxx +++ b/mod/mod-build-task.cxx @@ -2104,7 +2104,8 @@ handle (request& rq, response& rs) // of the build auxiliary machines is less than 10. If that's not the // case, then turn the build into the built state with the abort status. // - if (task_response.task->auxiliary_machines.size () > 9) + if (task_response.task && + task_response.task->auxiliary_machines.size () > 9) { // Respond with the no-task manifest. // -- cgit v1.1