From f68c687536b681ca7a81d19a66956f6369956957 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 19 Feb 2015 18:59:56 -0500 Subject: [PATCH] Deskbar: Style fix, check for NULL explicitly --- src/apps/deskbar/TeamMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); + } } }