Skip to content
Snippets Groups Projects
Commit 40bd183d authored by henry's avatar henry
Browse files

Added check for zero-size insertdictionaryIstreamMemberFunctionTable

parent bc834372
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,17 @@ bool Foam::functionEntry::insert
"primitiveEntry& entry, Istream& is)"
);
if (!insertprimitiveEntryIstreamMemberFunctionTablePtr_)
{
cerr<<"functionEntry::insert"
<< "(const word&, dictionary&, primitiveEntry&, Istream&)"
<< " not yet initialized, function = "
<< functionName.c_str() << std::endl;
// return true to keep reading anyhow
return true;
}
insertprimitiveEntryIstreamMemberFunctionTable::iterator mfIter =
insertprimitiveEntryIstreamMemberFunctionTablePtr_->find(functionName);
......@@ -97,6 +108,17 @@ bool Foam::functionEntry::insert
"(const word& functionName, dictionary& parentDict, Istream& is)"
);
if (!insertdictionaryIstreamMemberFunctionTablePtr_)
{
cerr<<"functionEntry::insert"
<< "(const word&, dictionary&, Istream&)"
<< " not yet initialized, function = "
<< functionName.c_str() << std::endl;
// Return true to keep reading
return true;
}
insertdictionaryIstreamMemberFunctionTable::iterator mfIter =
insertdictionaryIstreamMemberFunctionTablePtr_->find(functionName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment