From 5d2f055ea9403770039ddf66b1900f890cd5cde7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Fri, 30 Apr 2021 14:37:52 +0200 Subject: [PATCH] Work around conduit returning null for well_known in login --- lib/structs/responses/login.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/structs/responses/login.cpp b/lib/structs/responses/login.cpp index 5ed8bfa8c..637061bc9 100644 --- a/lib/structs/responses/login.cpp +++ b/lib/structs/responses/login.cpp @@ -16,7 +16,7 @@ from_json(const nlohmann::json &obj, Login &response) if (obj.count("device_id") != 0) response.device_id = obj.at("device_id").get<std::string>(); - if (obj.count("well_known") != 0) + if (obj.count("well_known") != 0 && obj.at("well_known").is_object()) response.well_known = obj.at("well_known").get<WellKnown>(); } -- GitLab