diff --git a/Telegram/SourceFiles/boxes/url_auth_box.cpp b/Telegram/SourceFiles/boxes/url_auth_box.cpp index 51735b1cdb..13649dca8c 100644 --- a/Telegram/SourceFiles/boxes/url_auth_box.cpp +++ b/Telegram/SourceFiles/boxes/url_auth_box.cpp @@ -409,7 +409,7 @@ void RequestButton( url, displayName, session->user()->name(), - bot->firstName, + bot ? bot->firstName : QString(), callback), Ui::LayerOption::KeepOther); }