Skip to content

SentryTransaction.getStatus throws NPE #1268

Description

@marandaneto

SentryTransaction.getStatus throws NPE if the transaction is not finished yet.

@Override
@Nullable
public SpanStatus getStatus() {
return this.getContexts().getTrace().getStatus();
}

it should probably be context.getStatus() instead as this.getContexts().setTrace(this.context); only happens on finish

Metadata

Metadata

Labels

BugIssue typeperformancePerformance API issues
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions