diff --git a/source/framework/core/src/TRestBrowser.cxx b/source/framework/core/src/TRestBrowser.cxx index b26c9d2a7..16db4685e 100644 --- a/source/framework/core/src/TRestBrowser.cxx +++ b/source/framework/core/src/TRestBrowser.cxx @@ -301,7 +301,7 @@ Bool_t TRestBrowser::LoadEventId(Int_t eventID, Int_t subEventID) { if (fRestRun->GetAnalysisTree() != nullptr && fRestRun->GetAnalysisTree()->GetEntries() > 0) { TRestEvent* event = fRestRun->GetEventWithID(eventID, subEventID); - if (event != nullptr) { + if (event == nullptr) { RESTWarning << "Event ID : " << eventID << " with sub ID : " << subEventID << " not found!" << RESTendl; return kFALSE;