make sure subj != 0 in IconbarTool::update()

This commit is contained in:
markt 2007-12-02 03:11:28 +00:00
parent e30f235daf
commit d29a3ec590

View file

@ -411,7 +411,7 @@ void IconbarTool::update(FbTk::Subject *subj) {
// lock graphic update
m_icon_container.setUpdateLock(true);
if (typeid(*subj) == typeid(FocusableList::FocusableListSubject)) {
if (subj && typeid(*subj) == typeid(FocusableList::FocusableListSubject)) {
FocusableList::FocusableListSubject *fsubj =
static_cast<FocusableList::FocusableListSubject *>(subj);
if (subj == &m_winlist->addSig())