diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp index 83e4d27d83..f02ea735c8 100644 --- a/Telegram/SourceFiles/boxes/star_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp @@ -1849,7 +1849,9 @@ void SendGiftBox( auto &packs = window->session().giftBoxStickersPacks(); packs.updated() | rpl::start_with_next([=] { for (const auto &button : state->buttons) { - button->update(); + if (const auto raw = button.get()) { + raw->update(); + } } }, raw->lifetime());