Skip to content

Commit

Permalink
Fixes nullptr bug in CallableFlow. (bakerstu#630)
Browse files Browse the repository at this point in the history
When the flow is idle (no request or request has already been returned)
the request() function should return nullptr, instead of nullptr + 12.
  • Loading branch information
balazsracz authored Jun 25, 2022
1 parent b496173 commit c835af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/CallableFlow.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c835af7

Please sign in to comment.