For fix bin size histograms, histo->GetXaxis()->GetXbins()->GetArray() returns a “nullptr” (i.e. 0).
histo->GetXaxis()->GetXbins()->GetArray()