mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Fixing crash while deleting non-existing manifest entries. HT to zsfelfoldi
This commit is contained in:
parent
034f5bf238
commit
f8c5b3dcee
1 changed files with 4 additions and 1 deletions
|
|
@ -145,7 +145,10 @@ func (self *manifestTrie) deleteEntry(path string) {
|
|||
|
||||
b := byte(path[0])
|
||||
entry := self.entries[b]
|
||||
if (entry != nil) && (entry.Path == path) {
|
||||
if entry == nil {
|
||||
return
|
||||
}
|
||||
if entry.Path == path {
|
||||
self.entries[b] = nil
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue