Skip to content

Commit 6920aaf

Browse files
committed
Fix Clang-Tidy warning.
1 parent 04a3f05 commit 6920aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/client/ui/desktop/task_manager_window.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void TaskManagerWindow::onServiceContextMenu(const QPoint& pos)
641641
bool enable_start = false;
642642
bool enable_stop = false;
643643

644-
if (current_item->startupType() != proto::task_manager::Service::STARTUP_TYPE_DISABLED)
644+
if (current_item && current_item->startupType() != proto::task_manager::Service::STARTUP_TYPE_DISABLED)
645645
{
646646
proto::task_manager::Service::Status status = current_item->status();
647647

0 commit comments

Comments
 (0)