From 40eaac550f89447c3b774bbe4cc0deda18c67092 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Mon, 9 Aug 2021 22:10:01 -0500 Subject: [PATCH] Don't archive non-existant protocol icons --- application/ProtocolLooper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/ProtocolLooper.cpp b/application/ProtocolLooper.cpp index 007a41d..9721684 100644 --- a/application/ProtocolLooper.cpp +++ b/application/ProtocolLooper.cpp @@ -47,7 +47,8 @@ ProtocolLooper::~ProtocolLooper() BMessage* msg = new BMessage(APP_ACCOUNT_DISABLED); BBitmap* icon = fProtocol->Icon(); - icon->Archive(msg); + if (icon != NULL) + icon->Archive(msg); msg->AddString("name", fProtocol->GetName()); fProtocol->MessengerInterface()->SendMessage(msg);