diff --git a/tree/tree/src/TTree.cxx b/tree/tree/src/TTree.cxx index 7fe44a50b40e3c40c25784f7e855e2e3c504d160..06a3dd4a1e08013fa10b750669cb75c395a65173 100644 --- a/tree/tree/src/TTree.cxx +++ b/tree/tree/src/TTree.cxx @@ -1039,7 +1039,7 @@ TFriendElement* TTree::AddFriend(const char* treename, const char* filename) fFriends = new TList(); } TFriendElement* fe = new TFriendElement(this, treename, filename); - R__ASSERT(fe); // this assert is for historical reasons. Don't remove it unless you understand all the consequences. + fFriends->Add(fe); TTree* t = fe->GetTree(); if (t) {