Guard virtualDesktopManagement being accessed before fetched

Authored by davidedmundson on Feb 26 2019, 2:39 PM.

Description

Guard virtualDesktopManagement being accessed before fetched

Summary:
The WaylandPrivate::virtualDesktopManagement object is loaded
asyncronously.

It's null until we finish fetching the registry.

A code path could call the desktopNames in that time.

Test Plan:
Had a crash
Couldn't reproduce reliably

Reviewers: Plasma, hein

Reviewed By: Plasma, hein

Subscribers: hein, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D19029

Details

Committed
davidedmundsonFeb 26 2019, 2:39 PM
Reviewer
Plasma
Differential Revision
D19029: Guard virtualDesktopManagement being accessed before fetched
Parents
R120:fafddc4deca1: Merge branch 'Plasma/5.15'
Branches
Unknown
Tags
Unknown