diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index e2b35a091..77c470993 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1728,7 +1728,7 @@ void MainWidget::closeBothPlayers() { if (_playerUsingPanel) { _playerUsingPanel = false; _player.destroyDelayed(); - } else { + } else if (_player) { _player->hide(anim::type::normal); } _playerVolume.destroyDelayed();