Skip to content

Commit d6a8d73

Browse files
authored
Merge pull request #95 from BitcoinSchema/nil-check
add nil check
2 parents c049206 + ac4a22c commit d6a8d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (a *Aip) SetDataFromTapes(tapes []bpu.Tape) {
118118

119119
for _, tape := range tapes {
120120
for _, cell := range tape.Cell {
121-
if *cell.S != Prefix && contains(a.Indices, indexCt) {
121+
if cell.S != nil && *cell.S != Prefix && contains(a.Indices, indexCt) {
122122
data = append(data, *cell.S)
123123
} else {
124124
data = append(data, pipe)

0 commit comments

Comments
 (0)