From f418c62cae92560acfde555ccfb6fb5db35a2bbb Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 2 Apr 2015 15:00:08 +0200 Subject: [PATCH] infoviewer.cpp fix possible segfault if APIDs is empty Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9c4e8b028b7a87afc4bd313494e1e2d3e470bd83 Author: Jacek Jendrzej Date: 2015-04-02 (Thu, 02 Apr 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 9816f5b56..d6d2df288 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1325,7 +1325,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data) if ((*(t_channel_id *) data) == channel_id) { if (is_visible && showButtonBar) infoViewerBB->showBBButtons(CInfoViewerBB::BUTTON_AUDIO); - if (g_settings.radiotext_enable && g_Radiotext && ((CNeutrinoApp::getInstance()->getMode()) == NeutrinoMessages::mode_radio)) + if (g_settings.radiotext_enable && g_Radiotext && !g_RemoteControl->current_PIDs.APIDs.empty() && ((CNeutrinoApp::getInstance()->getMode()) == NeutrinoMessages::mode_radio)) g_Radiotext->setPid(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].pid); } return messages_return::handled;