提交 189d786f 编写于 作者: L Liujian

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

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