We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead5da3 commit 3cc7514Copy full SHA for 3cc7514
1 file changed
sentry/src/main/java/io/sentry/Baggage.java
@@ -457,7 +457,11 @@ public void setReplayId(final @Nullable String replayId) {
457
@ApiStatus.Internal
458
public void set(final @NotNull String key, final @Nullable String value) {
459
if (mutable) {
460
- this.keyValues.put(key, value);
+ if (value == null) {
461
+ keyValues.remove(key);
462
+ } else {
463
+ keyValues.put(key, value);
464
+ }
465
}
466
467
0 commit comments