From 8f500e80fd923796b5caa28a74b3a78ff66f108f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 19 Mar 2013 13:56:13 +0400 Subject: [PATCH] gui/scan.cpp: fix f567d3b85d317c5118515ac86273f8b06e9a6572, inside start wizard zap crash, because neutrino channel list not created yet --- src/gui/scan.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index 436aaaac0..ca82c0a51 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -345,7 +345,8 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey) videoDecoder->StopPicture(); frameBuffer->Clear(); g_Sectionsd->setPauseScanning(false); - CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(CZapit::getInstance()->GetCurrentChannelID(), true); /* force re-zap */ + if (CNeutrinoApp::getInstance()->channelList) + CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(CZapit::getInstance()->GetCurrentChannelID(), true); /* force re-zap */ CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO); return menu_return::RETURN_REPAINT;