Skip to content

Commit

Permalink
Merge pull request #95 from BitcoinSchema/nil-check
Browse files Browse the repository at this point in the history
add nil check
  • Loading branch information
rohenaz authored Apr 9, 2024
2 parents c049206 + ac4a22c commit d6a8d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bob.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6a8d73

Please sign in to comment.