summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Clist_modern/src/modern_clcitems.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp
index 7e8cccfdd3..557f4edbe3 100644
--- a/plugins/Clist_modern/src/modern_clcitems.cpp
+++ b/plugins/Clist_modern/src/modern_clcitems.cpp
@@ -47,8 +47,10 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup)
continue;
ClcCacheEntry *pdnce = pcli->pfnGetCacheEntry(hsub);
- WORD wStatus = pdnce->getStatus();
+ if (pdnce->szProto == nullptr)
+ continue;
+ WORD wStatus = pdnce->getStatus();
if (!showOfflineHereGroup && bHideOffline && !pdnce->m_bNoHiddenOffline && wStatus == ID_STATUS_OFFLINE)
continue;