aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm
diff options
context:
space:
mode:
authorStephenButtolph <[email protected]>2020-09-11 16:42:52 -0400
committerStephenButtolph <[email protected]>2020-09-11 16:42:52 -0400
commit496397e31c5082e20e28a1a2e9c2bbacde5e1deb (patch)
tree8b9c77ddac162591976875e6b299054f7415402f /plugin/evm
parent288833d594c333af551cb656cfab60ed52054eae (diff)
fixed nil pointerv0.2.15-rc.4
Diffstat (limited to 'plugin/evm')
-rw-r--r--plugin/evm/vm.go2
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
}