fix: entry->app maybe nullptr, need to judge before use

log: as title
This commit is contained in:
tsic404 2023-05-12 14:26:49 +08:00 committed by 爱折腾的小竹同学
parent a041aa7cf3
commit d4cb60370e

View File

@ -25,7 +25,8 @@
bool shouldShowEntry(Entry *entry)
{
if (entry->getApp()->isValidApp()) {
auto app = entry->getApp();
if (app && app->isValidApp()) {
QString path = entry->getApp()->getFileName();
DesktopInfo desktopInfo(path.toStdString());
return desktopInfo.shouldShow();