From 734822b2e08cb153b6b067a8c1970bb0dfe58e95 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 Jun 2022 18:54:58 +0300 Subject: fixes #3103 (Miranda crashes randomly (null pointer dereference in NewEventNotify) --- plugins/NewEventNotify/src/popup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index 6f70f20e25..dca446fb4f 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -286,9 +286,9 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei) break; default: - DBEVENTTYPEDESCR *pei = DbEvent_GetType(dbei->szModule, dbei->eventType); // support for custom database event types - if (pBlob) { + DBEVENTTYPEDESCR *pei = DbEvent_GetType(dbei->szModule, dbei->eventType); + if (pei && pBlob) { comment1 = DbEvent_GetTextW(dbei, CP_ACP); commentFix = pei->descr; } -- cgit v1.2.3