diff --git a/src/apps/deskbar/TeamMenu.cpp b/src/apps/deskbar/TeamMenu.cpp index 46832e60e6..434f4dd7bd 100644 --- a/src/apps/deskbar/TeamMenu.cpp +++ b/src/apps/deskbar/TeamMenu.cpp @@ -108,9 +108,10 @@ TTeamMenu::AttachedToWindow() item->SetEnabled(canhandle); BMenu* menu = item->Submenu(); - if (menu) + if (menu != NULL) { menu->SetTrackingHook(barview->MenuTrackingHook, barview->GetTrackingHookData()); + } } }