Skip to content

Commit

Permalink
Merge pull request #26137 from Dr15Jones/fixMessageSender
Browse files Browse the repository at this point in the history
Protect against accessing nullptr in MessageSender
  • Loading branch information
cmsbuild committed Mar 11, 2019
2 parents ce10e4b + a37379f commit 61be00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/MessageLogger/src/MessageSender.cc
Expand Up @@ -119,7 +119,7 @@ void MessageSender::ErrorObjDeleter::operator()(ErrorObj * errorObjPtr) {
#endif
// change log 1
if ( errorSummaryIsBeingKept.load(std::memory_order_acquire) &&
errorObjPtr->xid().severity >= ELwarning &&
errorObjPtr->xid().severity >= ELwarning && drop &&
drop->streamID < std::numeric_limits<unsigned int>::max())
{
auto& errorSummaryMap =errorSummaryMaps[drop->streamID];
Expand Down

0 comments on commit 61be00a

Please sign in to comment.