Skip to content

Commit 23a8883

Browse files
committed
tuple hotfix
1 parent 10c27c5 commit 23a8883

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tlb/tuple.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ func (t *VmStkTuple) Unmarshal(v any) error {
1414
case reflect.Slice:
1515
items, err := t.RecursiveToSlice()
1616
if err != nil {
17-
items, err = t.Data.RecursiveToSlice(int(t.Len))
18-
if err != nil {
19-
return err
17+
if t.Data != nil {
18+
items, err = t.Data.RecursiveToSlice(int(t.Len))
19+
if err != nil {
20+
return err
21+
}
22+
} else {
23+
items = []VmStackValue{}
2024
}
2125
}
2226
sl := reflect.MakeSlice(val.Elem().Type(), 0, len(items))

0 commit comments

Comments
 (0)