Skip to content

Commit

Permalink
Fix Clang-Tidy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchapyshev committed Apr 8, 2024
1 parent 04a3f05 commit 6920aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client/ui/desktop/task_manager_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ void TaskManagerWindow::onServiceContextMenu(const QPoint& pos)
bool enable_start = false;
bool enable_stop = false;

if (current_item->startupType() != proto::task_manager::Service::STARTUP_TYPE_DISABLED)
if (current_item && current_item->startupType() != proto::task_manager::Service::STARTUP_TYPE_DISABLED)
{
proto::task_manager::Service::Status status = current_item->status();

Expand Down

0 comments on commit 6920aaf

Please sign in to comment.