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

avoid using null pointer

git-svn-id: http://root.cern.ch/svn/root/trunk@24874 27541ba8-7e3a-0410-8455-c3a389f83636
parent caaf8db0
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,10 @@ void TTreeCloner::CopyStreamerInfos()
if (oldInfo->GetClassVersion()==1) {
// We may have a Foreign class let's look using the
// checksum:
curInfo = (TStreamerInfo*)cl->FindStreamerInfo(oldInfo->GetCheckSum());
TStreamerInfo *matchInfo = (TStreamerInfo*)cl->FindStreamerInfo(oldInfo->GetCheckSum());
if (matchInfo) {
curInfo = matchInfo;
}
}
curInfo->TagFile(toFile);
} else {
......
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