Skip to content

Commit

Permalink
fix(core): Ensure span links attributes can't be null
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Mar 1, 2024
1 parent d41fb9c commit f49c244
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ protected SpanLink(
this.traceId = traceId;
this.spanId = spanId;
this.traceFlags = traceFlags;
this.traceState = (traceState == null) ? "" : traceState;
this.attributes = attributes;
this.traceState = traceState == null ? "" : traceState;
this.attributes = attributes == null ? EMPTY : attributes;
}

/**
Expand Down

0 comments on commit f49c244

Please sign in to comment.