diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 2236b1f95..24f27056c 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -649,6 +649,10 @@ void AvatarJob::start() QImage AvatarJob::makeCircularAvatar(const QImage &baseAvatar) { + if (baseAvatar.isNull()) { + return {}; + } + int dim = baseAvatar.width(); QImage avatar(dim, dim, QImage::Format_ARGB32);