Skip to content

Commit

Permalink
Deal with cases in which file is a nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
perrotta committed Oct 28, 2022
1 parent 66f82dd commit e3d7bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DQMServices/FwkIO/plugins/DQMRootSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ std::shared_ptr<edm::FileBlock> DQMRootSource::readFile_() {
}
} //end loop over names of the file

if (!isGoodFile && m_skipBadFiles)
if (!file || (!isGoodFile && m_skipBadFiles))
continue;

std::unique_ptr<std::string> guid{file->Get<std::string>(kCmsGuid)};
Expand Down

0 comments on commit e3d7bce

Please sign in to comment.