Commit cd043030 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix potential null dereference in LockScreenFilter

input()->findToplevel() may return null.
parent f9b7d529
Pipeline #168655 passed with stage
in 12 minutes and 30 seconds
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment