Skip to content

Commit 245982d

Browse files
committed
fix bug
1 parent 8b61055 commit 245982d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iavl/commit_tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (c *CommitTree) workingHash() []byte {
7979
}
8080

8181
root := c.root.mem.Load()
82-
if root != nil {
82+
if root != nil && root.hash != nil {
8383
// already computed working hash
8484
return root.hash
8585
}

0 commit comments

Comments
 (0)