Fix #315: Crash when contact list is empty
commitab4cd5806b28c13ab15e8744a4f0e29885fd61eb
authorStefan Becker <chemobejk@gmail.com>
Sun, 16 Oct 2016 15:04:46 +0000 (16 18:04 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sun, 16 Oct 2016 15:09:25 +0000 (16 18:09 +0300)
tree1ebc9e1832ec47f86dffad491b424f57d1e8b3a0
parent4036d33fd2f87ef5cd8963742438753ef19551da
Fix #315: Crash when contact list is empty

When a new non-UCS account has an empty contact list then SIPE requests
the creation of an empty default group "Other Contacts", i.e. it calls
sipe_group_create() with who == NULL. The transaction callback then
calls sipe_buddy_find_by_uri() with uri == NULL.

Add a NULL check to sipe_buddy_find_by_uri() to fix the crash.
ChangeLog
src/core/sipe-buddy.c
src/core/sipe-buddy.h
src/core/sipe-group.h