diff options
author | Karlson2k <k2k@narod.ru> | 2014-01-23 19:42:00 +0400 |
---|---|---|
committer | Karlson2k <k2k@narod.ru> | 2014-01-24 08:39:04 +0400 |
commit | f31dab76f940f14bc03a93e493d0abbbced6db08 (patch) | |
tree | d92929c0c28f84552b04d59bb61d238518e7a9e3 | |
parent | f0dc3495c8a72c1811120f3f060d0742848cad86 (diff) |
VideoInfoScanner::GetFanart: fix: don't dereference null pointer
-rw-r--r-- | xbmc/video/VideoInfoScanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp index 40b814299c..ed2f43e9f6 100644 --- a/xbmc/video/VideoInfoScanner.cpp +++ b/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); |