DecorationItem: Prevent crash

We are calling a QPointer without checking it first.
This commit is contained in:
Aleix Pol 2021-11-05 23:54:48 +01:00 committed by Aleix Pol Gonzalez
parent 0eb56fff6e
commit b44f33c7ed

View file

@ -45,7 +45,9 @@ Decoration::DecoratedClientImpl *DecorationRenderer::client() const
void DecorationRenderer::invalidate() void DecorationRenderer::invalidate()
{ {
addDamage(m_client->client()->rect()); if (m_client) {
addDamage(m_client->client()->rect());
}
m_imageSizesDirty = true; m_imageSizesDirty = true;
} }