Skip to content

Commit

Permalink
Fix segmentation fault when exiting on error in anasum
Browse files Browse the repository at this point in the history
  • Loading branch information
GernotMaier committed Dec 12, 2024
1 parent 78ad699 commit c88c62a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/VStereoAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,18 @@ int VStereoAnalysis::getDataRunNumber() const
}
else if( fDataRun->GetEntry( 0 ) == 0 )
{
cout << "VStereoAnalysis::getDataRunNumber error: tree is empty." << endl;
fDataRun->fChain->Print();
cout << "VStereoAnalysis::getDataRunNumber error: mscw data tree is empty." << endl;
cout << "exiting...";
}
else
{
return fDataRun->runNumber;
}
}

gROOT->SetMustClean(false);
exit( EXIT_FAILURE );
return 0;
return -1;
}


Expand Down

0 comments on commit c88c62a

Please sign in to comment.