From ac4a22ca4be125d72dcbc15091c4a1bd13c625a3 Mon Sep 17 00:00:00 2001
From: David Case <david@fyxgaming.com>
Date: Sat, 6 Apr 2024 22:00:32 -0400
Subject: [PATCH] add nil check

---
 bob.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob.go b/bob.go
index 1ff83af..8df3a70 100644
--- a/bob.go
+++ b/bob.go
@@ -118,7 +118,7 @@ func (a *Aip) SetDataFromTapes(tapes []bpu.Tape) {
 
 		for _, tape := range tapes {
 			for _, cell := range tape.Cell {
-				if *cell.S != Prefix && contains(a.Indices, indexCt) {
+				if cell.S != nil && *cell.S != Prefix && contains(a.Indices, indexCt) {
 					data = append(data, *cell.S)
 				} else {
 					data = append(data, pipe)