Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contexts.setTrace can't be null #3414

Open
leonchen83 opened this issue May 13, 2024 · 1 comment
Open

Contexts.setTrace can't be null #3414

leonchen83 opened this issue May 13, 2024 · 1 comment
Labels
Platform: Java Type: Bug Something isn't working
Milestone

Comments

@leonchen83
Copy link

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.

@adinauer
Copy link
Member

Thanks for opening this issue @leonchen83. We'll change this to actually allow setting null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Java Type: Bug Something isn't working
Projects
Status: No status
Status: Needs Discussion
Development

No branches or pull requests

3 participants