Ticket #5121: deskbar-crash-fix.diff

File deskbar-crash-fix.diff, 531 bytes (added by darkwyrm, 12 years ago)
  • ExpandoMenuBar.cpp

     
    360360    // double-click on an item brings the team to front
    361361    int32 clicks;
    362362    if (message != NULL && message->FindInt32("clicks", &clicks) == B_OK
    363         && clicks > 1) {
     363        && clicks > 1 && item != NULL) {
    364364        if (item == menuItem && item == fLastClickItem) {
    365365            // activate this team
    366366            be_roster->ActivateApp((team_id)item->Teams()->ItemAt(0));