From 5020bc8529a5b01607a10e8adb1d2724176f3c99 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Mon, 24 Mar 2025 01:30:28 -0500 Subject: [PATCH] address nil pointer dereference --- node/store/hypergraph.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/store/hypergraph.go b/node/store/hypergraph.go index ea6abaa..5804566 100644 --- a/node/store/hypergraph.go +++ b/node/store/hypergraph.go @@ -710,7 +710,10 @@ func (p *PebbleHypergraphStore) LoadHypergraph() ( txn.Abort() return err } - txn = nil + txn, err = p.NewTransaction(false) + if err != nil { + return err + } } } if txn != nil {