mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
neutrinoyparser.cpp, tuxboxapi: avoid possible crashes without g_bouquetManager instance
This was observed without physical frontends and in certain
circumstances while using the web interface, e.g. if users are
using bouquet functionalities.
Origin commit data
------------------
Branch: ni/coolstream
Commit: fbc873caf6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-11-15 (Tue, 15 Nov 2022)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1424,6 +1424,9 @@ std::string CControlAPI::_GetBouquetWriteItem(CyhookHandler *hh, CZapitChannel *
|
||||
//-------------------------------------------------------------------------
|
||||
void CControlAPI::GetBouquetCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (g_bouquetManager == NULL)
|
||||
return;
|
||||
|
||||
TOutType outType = hh->outStart(true /*old mode*/);
|
||||
|
||||
std::string result = "";
|
||||
@@ -2165,6 +2168,9 @@ void CControlAPI::ReloadNeutrinoSetupCGI(CyhookHandler *hh)
|
||||
|
||||
void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
|
||||
{
|
||||
if (g_Plugins == NULL)
|
||||
return;
|
||||
|
||||
g_Plugins->loadPlugins();
|
||||
hh->SendOk();
|
||||
}
|
||||
|
Reference in New Issue
Block a user