Fix CID 350455 (uncaught exception)

This commit is contained in:
Alexey Rybalchenko
2020-01-13 14:38:01 +01:00
committed by Dennis Klein
parent c290c16896
commit 7187953604

View File

@@ -20,7 +20,7 @@ using namespace std;
using namespace fair::mq; using namespace fair::mq;
template<typename T> template<typename T>
T GetPropertyOrDefault(const fair::mq::Properties& m, const string& k, const T& ifNotFound) noexcept T GetPropertyOrDefault(const fair::mq::Properties& m, const string& k, const T& ifNotFound)
{ {
if (m.count(k)) { if (m.count(k)) {
return boost::any_cast<T>(m.at(k)); return boost::any_cast<T>(m.at(k));