mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-31 12:08:37 +00:00
eth/tracers: add nil check
This commit is contained in:
parent
efe58eac00
commit
dbcff3a4aa
1 changed files with 3 additions and 1 deletions
|
|
@ -234,6 +234,8 @@ func (t *muxTracer) GetResult() (json.RawMessage, error) {
|
||||||
// Stop terminates execution of the tracer at the first opportune moment.
|
// Stop terminates execution of the tracer at the first opportune moment.
|
||||||
func (t *muxTracer) Stop(err error) {
|
func (t *muxTracer) Stop(err error) {
|
||||||
for _, t := range t.tracers {
|
for _, t := range t.tracers {
|
||||||
t.Stop(err)
|
if t.Stop != nil {
|
||||||
|
t.Stop(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue