diff options
| author | Grant Limberg <[email protected]> | 2021-06-04 15:15:42 -0700 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2021-06-04 15:15:42 -0700 |
| commit | fd85f87adec7bfa4b3c8ea0af662400838839116 (patch) | |
| tree | 55dbcfa636772106a0c2d109c4ceb870dd29b73f /controller/PostgreSQL.cpp | |
| parent | add33f1ab357b1917ba151e0e6ce52b769654eee (diff) | |
handle null in result set
Diffstat (limited to 'controller/PostgreSQL.cpp')
| -rw-r--r-- | controller/PostgreSQL.cpp | 2 |
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>(); } |
