summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2021-06-04 15:15:42 -0700
committerGrant Limberg <[email protected]>2021-06-04 15:15:42 -0700
commitfd85f87adec7bfa4b3c8ea0af662400838839116 (patch)
tree55dbcfa636772106a0c2d109c4ceb870dd29b73f /controller/PostgreSQL.cpp
parentadd33f1ab357b1917ba151e0e6ce52b769654eee (diff)
handle null in result set
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index beb8f3bb..e7d23e4b 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -696,7 +696,7 @@ void PostgreSQL::initializeMembers()
"WHERE e.network_id = $1 AND e.member_id = $2 AND n.sso_enabled = TRUE "
"ORDER BY e.authentication_expiry_time LIMIT 1", networkId, memberId);
- if (authRes.size() == 1) {
+ if (authRes.size() == 1 && !authRes.at(0)[0].is_null()) {
// there is an expiry time record
config["authenticationExpiryTime"] = authRes.at(0)[0].as<int64_t>();
}