From 2a2f15ef946aab0ca453ee10bd44746ffa7e6294 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Mar 2023 17:47:15 +0300 Subject: occasional crash fix --- protocols/Telegram/src/auth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram/src') diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index d55ca3a436..72f9be8698 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -94,7 +94,7 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) pAuthState = std::move(pObj->authorization_state_); switch (pAuthState->get_id()) { case TD::authorizationStateReady::ID: - if (pConnState->get_id() == TD::connectionStateReady::ID) + if (pConnState && pConnState->get_id() == TD::connectionStateReady::ID) OnLoggedIn(); break; -- cgit v1.2.3