Skip to content

Commit

Permalink
null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-hensley committed Sep 19, 2023
1 parent dd07ca0 commit fc47558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private static void AddRequestTagsAndInstrumentRequest(HttpWebRequest request, A
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void AddResponseTags(HttpWebResponse response, Activity activity)
{
if (activity.IsAllDataRequested)
if (activity != null && activity.IsAllDataRequested)
{
if (emitOldAttributes)
{
Expand Down

0 comments on commit fc47558

Please sign in to comment.