[ROOT] bug in TTree::Fill

From: Andrej Filipcic (Andrej.Filipcic@ijs.si)
Date: Wed Sep 04 2002 - 12:03:37 MEST


Hi,

there is a bug in rootcvs in TTree::Fill function. Fill crashes if there
is no TFile used. The line tree/src/TTree.cxx:2000

        if (!fDirectory) return nbytes;

should be modified to

        if (!fDirectory->GetFile()) return nbytes;

Andrej

-- 
_____________________________________________________________
   doc. dr. Andrej Filipcic,   E-mail: Andrej.Filipcic@ijs.si
   Department of Experimental High Energy Physics - F9
   Jozef Stefan Institute, Jamova 39, P.o.Box 3000
   SI-1001 Ljubljana, Slovenia
   Tel.: +386-1-477-3674    Fax: +386-1-425-7074
-------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET