CB-577: handle questions without async waiters

This commit is contained in:
Dai Ha
2026-08-15 06:22:22 +02:00
parent e186c7945a
commit 5275922d1d
@@ -625,7 +625,7 @@ public final class MessageService {
/** Record the active question for an async ticket; blocking sends have no entry and stay unchanged. */
private Task markAsyncQuestion(CompletableFuture<Rendezvous.Resolution> waiter, String text, String turnId) {
Task task = asyncTasksByWaiter.get(waiter);
Task task = waiter == null ? null : asyncTasksByWaiter.get(waiter);
if (task != null) {
task.question = new Reply(Outcome.QUESTION, text, turnId);
task.turnId = turnId;