From 4bbc512ed42d5cac8a412d30b19720999053fc8e Mon Sep 17 00:00:00 2001
From: David Case <david@fyxgaming.com>
Date: Mon, 15 Apr 2024 15:31:38 -0400
Subject: [PATCH] nil check

---
 bob.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bob.go b/bob.go
index 8df3a70..d8be04b 100644
--- a/bob.go
+++ b/bob.go
@@ -61,6 +61,9 @@ func (a *Aip) FromTape(tape bpu.Tape) {
 		// Loop over remaining indices if they exist and append to indices slice
 		a.Indices = make([]int, len(tape.Cell)-finalIndexCount)
 		for x := finalIndexCount - 1; x < len(tape.Cell); x++ {
+			if tape.Cell[x].S == nil {
+				continue
+			}
 			if index, err := strconv.Atoi(*tape.Cell[x].S); err == nil {
 				a.Indices = append(a.Indices, index)
 			}