Deskbar: Style fix, check for NULL explicitly

This commit is contained in:
John Scipione 2015-02-19 18:59:56 -05:00
parent dbf8c834a2
commit f68c687536

View File

@ -108,9 +108,10 @@ TTeamMenu::AttachedToWindow()
item->SetEnabled(canhandle);
BMenu* menu = item->Submenu();
if (menu)
if (menu != NULL) {
menu->SetTrackingHook(barview->MenuTrackingHook,
barview->GetTrackingHookData());
}
}
}