Skip to content

Commit 69d57cd

Browse files
ferdymercuryguitargeek
authored andcommitted
[tmva] assert is ignored in Release mode, so return null
Fixes https://its.cern.ch/jira/browse/ROOT-9918
1 parent dc3d738 commit 69d57cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tmva/tmva/src/ClassifierFactory.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ TMVA::IMethod* TMVA::ClassifierFactory::Create( const std::string &name,
101101
if (it == fCalls.end()) {
102102
std::cerr << "ClassifierFactory<>::Create - don't know anything about " << name << std::endl;
103103
assert(0);
104+
return nullptr;
104105
}
105106

106107
return (it->second)(job, title, dsi, option);
@@ -123,6 +124,7 @@ TMVA::IMethod* TMVA::ClassifierFactory::Create( const std::string &name,
123124
if (it == fCalls.end()) {
124125
std::cerr << "ClassifierFactory<>::Create - don't know anything about " << name << std::endl;
125126
assert(0);
127+
return nullptr;
126128
}
127129

128130
return (it->second)("", "", dsi, weightfile);

0 commit comments

Comments
 (0)