Blame SOURCES/0031-Check-pointer-for-null-before-use-in-ASSERT.patch

93bb3c
From ca1d9023b6d40a128faad652f02881b5805e36ba Mon Sep 17 00:00:00 2001
93bb3c
From: Roman Genkhel <roman.genhel@lge.com>
93bb3c
Date: Thu, 12 Nov 2020 12:21:51 +0300
93bb3c
Subject: [PATCH 31/40] Check pointer for null before use in ASSERT
93bb3c
93bb3c
Task-number: QTBUG-85195
93bb3c
Change-Id: I331e54f6e58aa9d536351a55223610c60b3cb414
93bb3c
Reviewed-by: David Edmundson <davidedmundson@kde.org>
93bb3c
(cherry picked from commit e235e8ddb1fc3cc5ab3b70b1fb285770b2c8c9ca)
93bb3c
---
93bb3c
 src/client/qwaylandwindow.cpp | 2 +-
93bb3c
 1 file changed, 1 insertion(+), 1 deletion(-)
93bb3c
93bb3c
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
93bb3c
index 7de19a74..ac01dc05 100644
93bb3c
--- a/src/client/qwaylandwindow.cpp
93bb3c
+++ b/src/client/qwaylandwindow.cpp
93bb3c
@@ -552,8 +552,8 @@ void QWaylandWindow::sendRecursiveExposeEvent()
93bb3c
 
93bb3c
 void QWaylandWindow::attach(QWaylandBuffer *buffer, int x, int y)
93bb3c
 {
93bb3c
-    Q_ASSERT(!buffer->committed());
93bb3c
     if (buffer) {
93bb3c
+        Q_ASSERT(!buffer->committed());
93bb3c
         handleUpdate();
93bb3c
         buffer->setBusy();
93bb3c
 
93bb3c
-- 
93bb3c
2.35.1
93bb3c