From 573b46b19d73c57bc682fce730d475c9b2107b06 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sun, 30 Nov 2025 20:24:10 +0100 Subject: [PATCH] Fixed crash (NULL pointer access) in RsGUIEventManager::async_handleIncomingEvent with activated plugins --- retroshare-gui/src/gui/RsGUIEventManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/RsGUIEventManager.cpp b/retroshare-gui/src/gui/RsGUIEventManager.cpp index 82d66e799..73bdb8a3a 100644 --- a/retroshare-gui/src/gui/RsGUIEventManager.cpp +++ b/retroshare-gui/src/gui/RsGUIEventManager.cpp @@ -398,7 +398,10 @@ void RsGUIEventManager::async_handleIncomingEvent(std::shared_ptr if (rsPlugin) { ToasterNotify *toasterNotify = rsPlugin->qt_toasterNotify(); if (toasterNotify) { - insertToaster(toasterNotify->toasterItem()); + ToasterItem *toasterItem = toasterNotify->toasterItem(); + if (toasterItem) { + insertToaster(toasterItem); + } continue; } }