]> git.0d.be Git - empathy.git/commit
Don't assume that 'subscribe' exists.
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 11 Aug 2009 17:02:51 +0000 (18:02 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Tue, 18 Aug 2009 17:03:39 +0000 (18:03 +0100)
commit77363aa431aaa9a2938bf547500a3c2ce2cd17c2
tree840df2607262eca25a5e9f6c148bcc92ccd9d899
parentf0a0befc9453c490d9db7c820708b49481c30f96
Don't assume that 'subscribe' exists.

This fixes bug #591468, which is a crash when you open a tab to a
contact from the user list in an IRC channel. Idle doesn't have a
'subscribe' list, so priv->subscribe is NULL, so this crashed. But if
you don't have a subscribe list, obviously you can't add the contact to
subscribe, so we can just guard this appropriately.

Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
libempathy/empathy-tp-contact-list.c