Skip to content

Commit

Permalink
fix nil point
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisChu committed Aug 23, 2022
1 parent 1b1d22e commit 2854bbd
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 2854bbd

Please sign in to comment.