From b353cbdb0a6dcccb8e3b86537e8047f776df680c Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 15 Feb 2020 18:32:03 +0100 Subject: [PATCH] user_menue: fix possible segfault, after remove channelist Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/24188fa43205a6d9ca7c1d387d40a4de6ac90836 Author: Jacek Jendrzej Date: 2020-02-15 (Sat, 15 Feb 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/user_menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index 5c37fa330..b28bc8ef5 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -200,7 +200,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) bool _mode_ts = CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_ts; bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) && - (!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()); + (CZapit::getInstance()->GetCurrentChannel() && !CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()); int rec_mode = (CRecordManager::getInstance()->GetRecordMode() & CRecordManager::RECMODE_REC_TSHIFT); bool timeshift = CMoviePlayerGui::getInstance().timeshift;