提交 f0c2ff10 编写于 作者: L Liujian

修复编排取值空指针的问题

上级 7afc40cd
......@@ -49,7 +49,10 @@ func (r *_BodyReader) Read(variables *Variables) string {
func find(node *reflect.Value, path []string) string {
if len(path) == 0 {
return fmt.Sprint(node.Interface())
if node.IsValid() {
return fmt.Sprint(node.Interface())
}
return ""
}
k := node.Kind()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册