Avoid unchecked mutation offer access
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 3m38s
Foundation / checks (checks) (push) Canceled after 3m44s
Foundation / checks (network) (push) Canceled after 1m43s

This commit is contained in:
dingo
2026-10-11 07:57:45 -04:00
parent 08ecd14ac4
commit 36eee96d09
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -551,7 +551,7 @@ match_cellular_mutation_actions_to_trace(const CellularLives& predecessor,
&CellularMutationSelection::life_id);
if (!life->mutation.offer)
return std::unexpected{CellularActionBlockError::mismatch};
const auto& offer = life->mutation.offer.value();
const auto offer = life->mutation.offer.value_or(biology::MutationOffer{});
if (selection == mutations.end() || selection->life_id != life->identity.life ||
selection->event_index != action.input.event_index ||
selection->offer_tick != action.input.offer_tick ||