fix bugs: multibyte chars, null pointer in a list

This commit is contained in:
z7zmey
2018-01-10 14:35:08 +02:00
parent ae34fc530e
commit 068716a66d
43 changed files with 2893 additions and 2652 deletions

View File

@@ -26,7 +26,9 @@ func (n *Name) 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)
}
}
}