summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Telegram/src/auth.cpp2
1 files changed, 1 insertions, 1 deletions
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;