Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/cont/inc/TRefArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ inline TObject *TRefArray::At(Int_t at) const
// Return the object at position i. Returns 0 if i is out of bounds.
int j = at-fLowerBound;
if (j >= 0 && j < fSize) {
TObject* obj = GetFromTable(j); // This properly returns 0 if the table is not available
if (obj) return obj;
if (!fPID) return nullptr;
if (!TProcessID::IsValid(fPID)) return nullptr;
TObject *obj = fPID->GetObjectWithID(fUIDs[j]);
if (!obj) obj = GetFromTable(j);
obj = fPID->GetObjectWithID(fUIDs[j]);
return obj;
}
BoundsOk("At", at);
Expand Down