Skip to content
Snippets Groups Projects
Commit e08507c5 authored by Philippe Canal's avatar Philippe Canal
Browse files

Add missing protection in WriteProcessID when there is no file

git-svn-id: http://root.cern.ch/svn/root/trunk@17844 27541ba8-7e3a-0410-8455-c3a389f83636
parent 96ff58ed
No related branches found
No related tags found
No related merge requests found
// @(#)root/io:$Name: $:$Id: TBufferFile.cxx,v 1.8 2007/02/09 08:37:21 brun Exp $
// @(#)root/io:$Name: $:$Id: TBufferFile.cxx,v 1.9 2007/02/09 10:16:07 rdm Exp $
// Author: Rene Brun 17/01/2007
/*************************************************************************
......@@ -2729,6 +2729,7 @@ UShort_t TBufferFile::WriteProcessID(TProcessID *pid)
// If not, add it and return the index number in the local file list.
TFile *file = (TFile*)GetParent();
if (!file) return 0;
return file->WriteProcessID(pid);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment