Teuchos::ParameterList: Possible bug in one-argument get?
Created by: mhoemmen
@trilinos/teuchos
@DrBooom reports the following: It looks like getEntryPtr returns NULL if the given parameter name does not exist in the parameter list. The implementation of the following method:
template<typename T>
const T& ParameterList::get(const std::string& name_in) const
uses the result of getEntryPtr directly. @DrBooom proposes that the implementation of get
"be modified to test the foundEntry
for null, and/or change validateEntryExists
to accept a null foundEntry. Maybe just throw."