diff --git a/Telegram/SourceFiles/boxes/edit_caption_box.cpp b/Telegram/SourceFiles/boxes/edit_caption_box.cpp index 5ffdfb6f3..be4d4e7fa 100644 --- a/Telegram/SourceFiles/boxes/edit_caption_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_caption_box.cpp @@ -206,6 +206,9 @@ void EditPhotoImage( Storage::UpdateImageDetails(file, previewWidth, sideLimit); done(std::move(list)); }; + if (!large) { + return; + } const auto fileImage = std::make_shared(*large); auto editor = base::make_unique_q( parent,