Skip to content

Commit

Permalink
Update TelemetryDispatchMessageInspector.cs
Browse files Browse the repository at this point in the history
#229: Check if reply is not null
  • Loading branch information
IevgenPlatonov committed Mar 13, 2022
1 parent 281e753 commit d931c47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void BeforeSendReply(ref Message reply, object correlationState)
{
if (correlationState is Activity activity)
{
if (activity.IsAllDataRequested)
if (activity.IsAllDataRequested && reply != null)
{
if (reply.IsFault)
{
Expand Down

0 comments on commit d931c47

Please sign in to comment.