diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 4ecb073d9..0c5cbd18f 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -669,13 +669,17 @@ void NotificationData::close() { } void NotificationData::setImage(const QString &imagePath) { - if (_imageKey.empty()) { + if (imagePath.isEmpty() || _imageKey.empty()) { return; } const auto image = QImage(imagePath) .convertToFormat(QImage::Format_RGBA8888); + if (image.isNull()) { + return; + } + _hints[_imageKey] = MakeGlibVariant(std::tuple{ image.width(), image.height(),