managedClient() is allowed to return 0.
Change-Id: I67f4ad9cc9bf40a829c2a26895529cabf5a716c0
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
QByteArray Surface::authenticationToken() const
{
Q_D(const Surface);
- return d->compositor->windowManagerIntegration()->managedClient(base()->resource.client)->authenticationToken();
+ WaylandManagedClient *mcl = d->compositor->windowManagerIntegration()->managedClient(base()->resource.client);
+ return mcl ? mcl->authenticationToken() : QByteArray();
}
QVariantMap Surface::windowProperties() const