diff options
Diffstat (limited to 'noannounce.c')
-rw-r--r-- | noannounce.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noannounce.c b/noannounce.c index 6ce8ed2..3c81066 100644 --- a/noannounce.c +++ b/noannounce.c @@ -42,11 +42,14 @@ cNoAnnounce::cNoAnnounce(const cEvent* e, time_t NextAnnounce) title = shortText = ""; startTime = 0; buffer = NULL; - if (e->Title()) title = e->Title(); - if (e->ShortText()) shortText = e->ShortText(); - channelID = e->ChannelID(); - startTime = e->StartTime(); - nextAnnounce = NextAnnounce; + if (e) + { + if (e->Title()) title = e->Title(); + if (e->ShortText()) shortText = e->ShortText(); + channelID = e->ChannelID(); + startTime = e->StartTime(); + nextAnnounce = NextAnnounce; + } } cNoAnnounce::~cNoAnnounce(void) |