Skip to content

Commit

Permalink
Merge pull request #33 from HarrisChu/fix_nil_point
Browse files Browse the repository at this point in the history
fix nil point
  • Loading branch information
HarrisChu authored Aug 24, 2022
2 parents 1b1d22e + 2854bbd commit a2d82bf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/nebulagraph/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ func (gc *GraphClient) Execute(stmt string) (common.IGraphResponse, error) {
// output
if gc.Pool.OutoptCh != nil {
var fr []string
for _, r := range rs.GetRows() {
for _, c := range r.GetValues() {
fr = append(fr, ValueToString(c))
if rows != 0 {
for _, r := range rs.GetRows() {
for _, c := range r.GetValues() {
fr = append(fr, ValueToString(c))
}
break
}
break
}
o := &output{
timeStamp: start.Unix(),
Expand Down

0 comments on commit a2d82bf

Please sign in to comment.