diff options
author | StephenButtolph <[email protected]> | 2020-09-11 16:42:52 -0400 |
---|---|---|
committer | StephenButtolph <[email protected]> | 2020-09-11 16:42:52 -0400 |
commit | 496397e31c5082e20e28a1a2e9c2bbacde5e1deb (patch) | |
tree | 8b9c77ddac162591976875e6b299054f7415402f /plugin | |
parent | 288833d594c333af551cb656cfab60ed52054eae (diff) |
fixed nil pointerv0.2.15-rc.4
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/evm/vm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index 0463112..a1224d4 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -643,7 +643,7 @@ func (vm *VM) getCachedStatus(blockID ids.ID) choices.Status { for tempBlock.ethBlock != nil { parentID := ids.NewID(tempBlock.ethBlock.ParentHash()) tempBlock = vm.getBlock(parentID) - if tempBlock.ethBlock == nil { + if tempBlock == nil || tempBlock.ethBlock == nil { break } |