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
SentryTransaction.getStatus throws NPE if the transaction is not finished yet.
sentry-java/sentry/src/main/java/io/sentry/SentryTransaction.java
Lines 238 to 242 in b016da4
it should probably be
context.getStatus()instead asthis.getContexts().setTrace(this.context);only happens onfinish