aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/data/merklesearchtree.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shard/lib/data/merklesearchtree.ex')
-rw-r--r--shard/lib/data/merklesearchtree.ex7
1 files changed, 5 insertions, 2 deletions
diff --git a/shard/lib/data/merklesearchtree.ex b/shard/lib/data/merklesearchtree.ex
index 49d54a5..e646774 100644
--- a/shard/lib/data/merklesearchtree.ex
+++ b/shard/lib/data/merklesearchtree.ex
@@ -301,8 +301,11 @@ defmodule SData.MerkleSearchTree do
case root do
nil -> []
_ ->
- %Page{ level: _, low: low, list: lst } = Store.get(s.store, root)
- last_aux(s, low, lst, top_bound, num)
+ case Store.get(s.store, root) do
+ nil -> []
+ %Page{ level: _, low: low, list: lst } ->
+ last_aux(s, low, lst, top_bound, num)
+ end
end
end