Skip to content

Commit 06abce5

Browse files
committed
bugfix a500e40 for the case of chain_->GetEntries() == 0
1 parent e1411f9 commit 06abce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infra/TaskManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void TaskManager::Run(long long nEventFrom, long long nEvents) {
103103
std::cout << "AnalysisTree::Manager::Run" << std::endl;
104104
auto start = std::chrono::system_clock::now();
105105

106-
if (nEventFrom + nEvents > chain_->GetEntries()) {
106+
if (nEventFrom + nEvents > chain_->GetEntries() && chain_->GetEntries() > 0) {
107107
throw std::runtime_error("TaskManager::Run() - nEventFrom + nEvents > chain_->GetEntries()");
108108
}
109109

0 commit comments

Comments
 (0)