fix bugs: multibyte chars, null pointer in a list
This commit is contained in:
@@ -26,7 +26,9 @@ func (n *Encapsed) Walk(v node.Visitor) {
|
||||
if n.Parts != nil {
|
||||
vv := v.GetChildrenVisitor("Parts")
|
||||
for _, nn := range n.Parts {
|
||||
nn.Walk(vv)
|
||||
if nn != nil {
|
||||
nn.Walk(vv)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user