Skip to content

Commit ca812a4

Browse files
committed
improvements based on review comments
1 parent 0c4a7bd commit ca812a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

FWCore/Framework/src/EDConsumerBase.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ void EDConsumerBase::throwBadToken(edm::TypeID const& iType, EDGetToken iToken)
402402
<< "A get using a EDGetToken with the C++ type '" << iType.className() << "' was made using a token with a value "
403403
<< iToken.index()
404404
<< " which is beyond the range used by this module.\n Please check that the variable is being initialized from "
405-
"a "
406-
"'consumes' call from this module.\n You can not share EDGetToken values between modules.";
405+
"a 'consumes' call from this module.\n You can not share EDGetToken values between modules.";
407406
}
408407

409408
void EDConsumerBase::throwConsumesCallAfterFrozen(TypeToGet const& typeToGet, InputTag const& inputTag) const {

FWCore/Framework/src/Principal.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ namespace edm {
452452

453453
auto token = inputTag.cachedToken();
454454

455+
// a null consumer can happen for tests and RandomNumberGeneratorService which calls getByLabel
456+
// without setting a EDConsumerBase
455457
if (token.isUninitialized() and consumer) {
456458
std::string const* processName = &inputTag.process();
457459
if (inputTag.process() == InputTag::kCurrentProcess) {

0 commit comments

Comments
 (0)