aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobo1on1 <bob-nospam-@xbmc.org>2011-06-13 20:13:42 +0200
committerbobo1on1 <bob-nospam-@xbmc.org>2011-06-13 20:40:13 +0200
commit0a67d091e6cb82bb0b6d40babfc9cac3f5ff8dca (patch)
tree74fe3aefd6f4ba946018d24ef9ef419895ddff66
parentbfe1d19e34370449511811b791c0e0585e45dcdb (diff)
fixed: crash when requesting listeners and music is NULL
-rw-r--r--xbmc/utils/LabelFormatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/LabelFormatter.cpp b/xbmc/utils/LabelFormatter.cpp
index 1e71d16f34..7e94a19ca1 100644
--- a/xbmc/utils/LabelFormatter.cpp
+++ b/xbmc/utils/LabelFormatter.cpp
@@ -304,7 +304,7 @@ CStdString CLabelFormatter::GetMaskContent(const CMaskString &mask, const CFileI
value.Format("%i kbps", item->m_dwSize);
break;
case 'W': // Listeners
- if( !item->m_bIsFolder && music->GetListeners() != 0 )
+ if( !item->m_bIsFolder && music && music->GetListeners() != 0 )
value.Format("%i %s", music->GetListeners(), g_localizeStrings.Get(music->GetListeners() == 1 ? 20454 : 20455));
break;
}