Make sure we check for non-null in background first.

This commit is contained in:
John Preston
2026-04-14 13:04:54 +07:00
parent 59e64f56fa
commit d36f7d598c
@@ -878,6 +878,7 @@ ChatBackgroundRects ComputeChatBackgroundRects(
}
QColor CountAverageColor(const QImage &image) {
Expects(!image.isNull());
Expects(image.format() == QImage::Format_ARGB32_Premultiplied
|| image.format() == QImage::Format_RGB32);