From ddeb31e3f445f1776350201a1e08f79649ff5b66 Mon Sep 17 00:00:00 2001 From: Drew Fisher Date: Sat, 17 May 2014 11:48:02 -0700 Subject: [PATCH] Handle null buddy icon on icon update This makes no sense. WHY WOULD THIS HAPPEN? But it does. --- ribbon/ribbonblist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ribbon/ribbonblist.cpp b/ribbon/ribbonblist.cpp index 7b6ef45..b2b88fb 100644 --- a/ribbon/ribbonblist.cpp +++ b/ribbon/ribbonblist.cpp @@ -90,6 +90,7 @@ void RibbonBlist::on_buddy_icon_change(PurpleBuddy* buddy) purple_buddy_get_account(buddy), purple_buddy_get_name(buddy) ); + if (!bicon) return; QString icon_abspath = QString::fromUtf8(purple_buddy_icon_get_full_path(bicon)); QDir state_dir(_manager->get_state_dir()); QString relative_path = state_dir.relativeFilePath(icon_abspath); -- 2.39.5