Skip to content
Snippets Groups Projects
Commit 3e08be49 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix: Markle tree: do not try to read rows if no one exists

parent aeb07828
No related branches found
No related tags found
No related merge requests found
Pipeline #33076 failed
......@@ -142,6 +142,7 @@ public class MerkleTree {
}
public String root() {
if (nodesCount == 0) return null; // No leaves
return rows.get(0).get(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment