Skip to content

Commit

Permalink
fix: nil-pointer panic in ToCnqueryProto (#1539)
Browse files Browse the repository at this point in the history
* fix: nil-pointer panic in ToCnqueryProto

* fix: nil-pointer panic in ToCnqueryProto
  • Loading branch information
slntopp authored Jan 10, 2025
1 parent f5aaceb commit 1e17bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/reporter/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ func (r *Report) ToCnqueryReport() *cr.Report {
report.Data[id] = &cr.DataValues{
Values: map[string]*cr.DataValue{},
}
for mid, value := range data.Values {
for mid, value := range data.GetValues() {
report.Data[id].Values[mid] = &cr.DataValue{
Content: value.Content,
Content: value.GetContent(),
}
}
}
Expand Down

0 comments on commit 1e17bc1

Please sign in to comment.