diff --git a/pkg/protocol/commitment.go b/pkg/protocol/commitment.go index 49a8936a0..e49ad25ea 100644 --- a/pkg/protocol/commitment.go +++ b/pkg/protocol/commitment.go @@ -289,7 +289,7 @@ func (c *Commitment) deriveReplayDroppedBlocks(chain *Chain) func() { // the parent is on the target Chain. func (c *Commitment) forceChain(targetChain *Chain) { if currentChain := c.Chain.Get(); currentChain != targetChain { - if parent := c.Parent.Get(); parent.Chain.Get() == targetChain { + if parent := c.Parent.Get(); parent != nil && parent.Chain.Get() == targetChain { parent.MainChild.Set(c) } }