You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
An application using apmot terminates unexpectedly because of a null pointer.
To Reproduce
I'm reproducing this in a complex environment. But looking at the methods Inject and Extract in module/apmot/tracer.go, the extract method returns a SpanContext with the tx field set to nil. On the other side the Inject method uses the value returned by spanContext.Transaction() without checking it. This generates the null pointer dereference.
Expected behavior
The application to run successfully.
The text was updated successfully, but these errors were encountered:
Describe the bug
An application using apmot terminates unexpectedly because of a null pointer.
To Reproduce
I'm reproducing this in a complex environment. But looking at the methods
Inject
andExtract
inmodule/apmot/tracer.go
, the extract method returns aSpanContext
with thetx
field set to nil. On the other side theInject
method uses the value returned byspanContext.Transaction()
without checking it. This generates the null pointer dereference.Expected behavior
The application to run successfully.
The text was updated successfully, but these errors were encountered: