Skip to content

Commit

Permalink
[PVR] Guide window: Fix possible null ptr dereference.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksooo committed Oct 31, 2016
1 parent b38f600 commit 9c9800c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/pvr/windows/GUIWindowPVRGuide.cpp
Expand Up @@ -515,6 +515,9 @@ bool CGUIWindowPVRGuide::RefreshTimelineItems()
if (epgGridContainer)
{
const CPVRChannelGroupPtr group(GetChannelGroup());
if (!group)
return false;

std::unique_ptr<CFileItemList> timeline(new CFileItemList);

// can be very expensive. never call with lock acquired.
Expand Down

0 comments on commit 9c9800c

Please sign in to comment.