timerlist: try to fix segfault in askUserOnTimerConflict()

Origin commit data
------------------
Branch: ni/coolstream
Commit: b70160a992
Author: FlatTV <FlatTV@gmx.de>
Date: 2016-11-06 (Sun, 06 Nov 2016)

Origin message was:
------------------
- timerlist: try to fix segfault in askUserOnTimerConflict()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
FlatTV
2016-11-06 20:51:09 +01:00
committed by vanhofen
parent 2c2e712af5
commit 80495e16e5

View File

@@ -1822,8 +1822,10 @@ bool CTimerList::askUserOnRemoteTimerConflict(time_t announceTime, time_t stopTi
bool askUserOnTimerConflict(time_t announceTime, time_t stopTime, t_channel_id channel_id)
{
//NI
bool useCI = false;
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
bool useCI = channel->bUseCI;
if (channel)
useCI = channel->bUseCI;
if (CFEManager::getInstance()->getEnabledCount() == 1 || useCI) { //NI
CTimerdClient Timer;