aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-task.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-03-22 18:08:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-03-22 18:09:15 +0300
commit11369a47e37419a8ef71b99f221f6f1dabcbf6c9 (patch)
tree768f5d28af259ff1f5178886c6ebcdf0aec0a158 /mod/mod-build-task.cxx
parent7fa57f8522ed7741c00ed3cd64cf956716aebd2c (diff)
Fix crashing of build task handler
Diffstat (limited to 'mod/mod-build-task.cxx')
-rw-r--r--mod/mod-build-task.cxx3
1 files changed, 2 insertions, 1 deletions
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.
//