HomeThat World

ethclient: ensure tx json is not nil before accessing it (#19653)

Authored by Dmitry Shulyak <yashulyak@gmail.com> on Jun 3 2019, 3:52 PM.

Description

ethclient: ensure tx json is not nil before accessing it (#19653)

TransactionInBlock crashed if json was nil and there was an error
because it tried to access fields From and BlockHash of the nil object.

Event Timeline

Felix Lange <fjl@twurst.com> committed rGETH15f24ff18968: ethclient: ensure tx json is not nil before accessing it (#19653) (authored by Dmitry Shulyak <yashulyak@gmail.com>).Jun 3 2019, 3:52 PM