Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f31dab76f940f14bc03a93e493d0abbbced6db08 1 parent f0dc349
Karlson2k Karlson2k authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  xbmc/video/VideoInfoScanner.cpp
2  xbmc/video/VideoInfoScanner.cpp
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.