diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index e043f05ed..679c0642c 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -1066,12 +1066,11 @@ object_ptr Controller::createDeleteButton() { void Controller::submitTitle() { Expects(_controls.title != nullptr); - Expects(_controls.description != nullptr); if (_controls.title->getLastText().isEmpty()) { _controls.title->showError(); _box->scrollToWidget(_controls.title); - } else { + } else if (_controls.description) { _controls.description->setFocus(); _box->scrollToWidget(_controls.description); }