]> git.zarvox.org Git - imoo.git/commitdiff
Handle null buddy icon on icon update
authorDrew Fisher <drew.m.fisher@gmail.com>
Sat, 17 May 2014 18:48:02 +0000 (11:48 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Sun, 18 May 2014 05:24:37 +0000 (22:24 -0700)
This makes no sense.  WHY WOULD THIS HAPPEN?  But it does.

ribbon/ribbonblist.cpp

index 7b6ef4510b9a064c745bb6aee750fc6ad786cad3..b2b88fbedc6919e8b1cbfe14f17998cf6a29a92c 100644 (file)
@@ -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);