Skip to content

Contexts.setTrace can't be null #3414

@leonchen83

Description

@leonchen83

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.

Metadata

Metadata

Assignees

Labels

BugIssue type
No fields configured for issues without a type.

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions