diff --git a/libtaskmanager/tasksmodel.cpp b/libtaskmanager/tasksmodel.cpp index 3d791ae5b..83ef8b5b3 100644 --- a/libtaskmanager/tasksmodel.cpp +++ b/libtaskmanager/tasksmodel.cpp @@ -921,6 +921,9 @@ QVariant TasksModel::data(const QModelIndex &proxyIndex, int role) const if (proxyIndex.data(AbstractTasksModel::IsLauncher).toBool()) { return true; } else { + if (!d->launcherTasksModel) { + return false; + } for (int i = 0; i < d->launcherTasksModel->rowCount(); ++i) { const QModelIndex &launcherIndex = d->launcherTasksModel->index(i, 0);