Closed cygnushan closed 6 years ago
Fix issues95
When retCodeValue := u.output.Elem().FieldByName("RetCode") return nil, The retCodeValue.IsValid() still return True, Which will cause retCodeValue.Elem().Int() panic because the kind of retCodeValue.Elem() is struct when retCodeValue is nil.
retCodeValue := u.output.Elem().FieldByName("RetCode")
retCodeValue.IsValid()
retCodeValue.Elem().Int()
retCodeValue.Elem()
Fix issues95
When
retCodeValue := u.output.Elem().FieldByName("RetCode")
return nil, TheretCodeValue.IsValid()
still return True, Which will causeretCodeValue.Elem().Int()
panic because the kind ofretCodeValue.Elem()
is struct when retCodeValue is nil.