Fix potential null dereference in LockScreenFilter
input()->findToplevel() may return null.
This commit is contained in:
parent
f9b7d5298b
commit
cd0430303b
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ public:
|
|||
}
|
||||
|
||||
auto window = input()->findToplevel(event->globalPos());
|
||||
if (window->isClient() && window->isLockScreen()) {
|
||||
if (window && window->isClient() && window->isLockScreen()) {
|
||||
workspace()->activateWindow(window);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue