summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 18:11:06 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 18:11:06 -0500
commit72ccd1020a47970e622912b2f30b8a0dbb03bb55 (patch)
treec4e13d8fc0fae3a5942364a95bc0bc62449966bf
parent6a9a577c599875b821afa285ae3a964dd78d3301 (diff)
downloadinfinitytier-72ccd1020a47970e622912b2f30b8a0dbb03bb55.tar.gz
infinitytier-72ccd1020a47970e622912b2f30b8a0dbb03bb55.zip
Another exception fix
-rw-r--r--controller/PostgreSQL.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 66b49394..cd913f87 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1047,7 +1047,10 @@ void PostgreSQL::commitThread()
if (!(*config)["remoteTraceTarget"].is_null()) {
remoteTraceTarget = (*config)["remoteTraceTarget"];
}
- std::string rulesSource = (*config)["rulesSource"];
+ std::string rulesSource;
+ if ((*config)["rulesSource"].is_string()) {
+ rulesSource = (*config)["rulesSource"];
+ }
std::string caps = OSUtils::jsonDump((*config)["capabilitles"], -1);
std::string now = std::to_string(OSUtils::now());
std::string mtu = std::to_string((int)(*config)["mtu"]);