Previously, the `Handle` method in `BodyQueryBehavior<TRecAction>` did not validate the `BodyQuery` result before setting `action.Body`. This change introduces a check to ensure that the result and its `RawBody` are not null. If either is null, an `InvalidOperationException` is thrown with a clear error message. This ensures `action.Body` is only set when a valid result is retrieved, improving robustness and preventing potential null reference issues.
ReC
Description
Languages
C#
100%