Skip to content

Commit

Permalink
fix empty list write issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xielei.xielei committed Jun 20, 2024
1 parent 1ce2e1f commit f26e8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrift/generic/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ func (self PathNode) marshal(p *thrift.BinaryProtocol, opts *Options) error {
if self.IsError() {
return self.Node
}
if len(self.Next) == 0 {
if len(self.Next) == 0 && self.Node.t != thrift.LIST {
p.Buf = append(p.Buf, self.raw()...)
return nil
}
Expand Down

0 comments on commit f26e8e2

Please sign in to comment.