Permalink
Browse files

VideoInfoScanner::GetFanart: fix: don't dereference null pointer

  • Loading branch information...
1 parent f0dc349 commit f31dab76f940f14bc03a93e493d0abbbced6db08 @Karlson2k Karlson2k committed Jan 23, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/video/VideoInfoScanner.cpp
@@ -1288,6 +1288,8 @@ namespace VIDEO
std::string CVideoInfoScanner::GetFanart(CFileItem *pItem, bool useLocal)
{
+ if (!pItem)
+ return "";
std::string fanart = pItem->GetArt("fanart");
if (fanart.empty() && useLocal)
fanart = pItem->FindLocalArt("fanart.jpg", true);

0 comments on commit f31dab7

Please sign in to comment.