From c835af7f505684871a88e904684b0ca7f175c180 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Sat, 25 Jun 2022 22:08:27 +0200 Subject: [PATCH] Fixes nullptr bug in CallableFlow. (#630) When the flow is idle (no request or request has already been returned) the request() function should return nullptr, instead of nullptr + 12. --- src/executor/CallableFlow.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor/CallableFlow.hxx b/src/executor/CallableFlow.hxx index afe57fea5..04391cf2a 100644 --- a/src/executor/CallableFlow.hxx +++ b/src/executor/CallableFlow.hxx @@ -65,7 +65,7 @@ protected: /// @return the current request we are working on. RequestType* request() { - return this->message()->data(); + return this->message() ? this->message()->data() : nullptr; } /// Terminates the flow and returns the request buffer to the caller with