From 7ed9751b22331e19797d680d2223f9f7e1be8111 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 20 Dec 2019 16:16:30 +0300 Subject: [PATCH] Add check for null AuthManager just in case. GitOrigin-RevId: 01fc067b0705589e164fae63a21b405d6813459f --- td/telegram/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index d9d726e5d..b426fd969 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -939,7 +939,7 @@ void ConfigManager::get_content_settings(Promise &&promise) { } auto auth_manager = G()->td().get_actor_unsafe()->auth_manager_.get(); - if (!auth_manager->is_authorized() || auth_manager->is_bot()) { + if (auth_manager == nullptr || !auth_manager->is_authorized() || auth_manager->is_bot()) { return promise.set_value(Unit()); }