From: Drew Fisher Date: Sat, 17 May 2014 18:48:02 +0000 (-0700) Subject: Handle null buddy icon on icon update X-Git-Url: http://git.zarvox.org/shortlog/static/%24c%5B5%5D?a=commitdiff_plain;h=ddeb31e3f445f1776350201a1e08f79649ff5b66;p=imoo.git Handle null buddy icon on icon update This makes no sense. WHY WOULD THIS HAPPEN? But it does. --- 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);