Avoid NULL pointer deref

Fixes: #1320
portage
Benny Baumann 2 years ago
parent 88f7ca4a75
commit a06ff08f21
  1. 4
      ScreenTabsPanel.c

@ -99,7 +99,9 @@ static HandlerResult ScreenTabsPanel_eventHandler(Panel* super, int ch) {
}
if (result == HANDLED) {
ScreenTabListItem* focus = (ScreenTabListItem*) Panel_getSelected(super);
ScreenNamesPanel_fill(this->names, focus->ds);
if (focus) {
ScreenNamesPanel_fill(this->names, focus->ds);
}
}
return result;
}

Loading…
Cancel
Save