You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Datadog plugin crashes with SIGSEGV in getDDCostsForWindow - nil pointer dereference #68
The Datadog plugin crashes with a segmentation violation when fetching cost data. The crash occurs in the getDDCostsForWindow function at line 237 of main.go.
The crash occurs at line 237 in the pagination handling code:
if resp.Meta != nil && resp.Meta.Pagination != nil && resp.Meta.Pagination.NextRecordId.IsSet() {
nextPageId = *resp.Meta.Pagination.NextRecordId.Get() // <- CRASH HERE
}
The code assumes that if IsSet() returns true, then .Get() will return a non-nil pointer. However, the Datadog API client's optional value pattern can return nil even when "set".
Activity