adium: fix crash when joining group chat
commit9b209269044697042abe4f653e1213ef72d1bd50
authorStefan Becker <chemobejk@gmail.com>
Wed, 14 Jan 2015 08:02:39 +0000 (14 10:02 +0200)
committerStefan Becker <chemobejk@gmail.com>
Wed, 14 Jan 2015 08:02:39 +0000 (14 10:02 +0200)
tree16692a1d3f81e540fc1fd860637642098f3760c3
parent78b382305f42b7ccc63fa7908138c0f8340a9b07
adium: fix crash when joining group chat

commit 7753ee4bc891b766521e0412a8d93a3aa2b53aa5 was not using the
correct conversion from PurpleConversation to sipe_chat_session. Thus
we got NULL instead of the uri, which caused an assert.

The method is triggered by purple_serv_got_joined_chat(), ie. before we
have a chance to set the sipe_chat_session pointer. Thus we need to
check if the pointer is valid before calling SIPE core.
src/adium/ESPurpleSIPEAccount.m
src/purple/purple-chat.c
src/purple/purple-private.h