Check pointer for null before use in ASSERT

Task-number: QTBUG-85195
Change-Id: I331e54f6e58aa9d536351a55223610c60b3cb414
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Roman Genkhel 2020-11-12 12:21:51 +03:00
parent ad466182a7
commit e1c5ff6e70

View File

@ -547,8 +547,8 @@ void QWaylandWindow::sendRecursiveExposeEvent()
void QWaylandWindow::attach(QWaylandBuffer *buffer, int x, int y)
{
Q_ASSERT(!buffer->committed());
if (buffer) {
Q_ASSERT(!buffer->committed());
handleUpdate();
buffer->setBusy();