summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_cachefuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_cachefuncs.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_cachefuncs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/modern_cachefuncs.cpp b/plugins/Clist_modern/src/modern_cachefuncs.cpp
index e0d6444fbe..cdaea88e47 100644
--- a/plugins/Clist_modern/src/modern_cachefuncs.cpp
+++ b/plugins/Clist_modern/src/modern_cachefuncs.cpp
@@ -511,6 +511,9 @@ void Cache_GetFirstLineText(ClcData *dat, ClcContact *contact)
void Cache_GetNthLineText(ClcData *dat, ClcCacheEntry *pdnce, int n)
{
+ if (pdnce == nullptr)
+ return;
+
wchar_t Text[240 - EXTRA_ICON_COUNT]; Text[0] = 0;
ClcLineInfo &line = (n == 2) ? g_plugin.secondLine : g_plugin.thirdLine;
wchar_t* &szText = (n == 2) ? pdnce->szSecondLineText : pdnce->szThirdLineText;