sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Contexts.setTrace can't be null

Open leonchen83 opened this issue 1 year ago • 1 comments

Integration

sentry-android

Build System

Gradle

AGP Version

7.4.2

Proguard

Enabled

Version

7.8.0

Steps to Reproduce

Contexts.setTrace(final @Nullable SpanContext traceContext)

Expected Result

it's Nullable. so traceContext can set to null.

Actual Result

throw NPE. We want set this value to null as same as iOS sdk.

leonchen83 avatar May 13 '24 02:05 leonchen83