Fix a bug when the contact is not in your roster.
authorDa Risk <darisk972@gmail.com>
Thu, 21 Jan 2010 00:32:27 +0100
changeset 643 335e1eb21cec
parent 642 e3d6355cf205
child 646 49e83a4b67b9
Fix a bug when the contact is not in your roster.
src/com/beem/project/beem/ui/Chat.java
--- a/src/com/beem/project/beem/ui/Chat.java	Thu Jan 21 00:22:43 2010 +0100
+++ b/src/com/beem/project/beem/ui/Chat.java	Thu Jan 21 00:32:27 2010 +0100
@@ -330,9 +330,9 @@
 	mChat.setOpen(true);
 	mChatManager.deleteChatNotification(mChat);
 
-	// TODO thecontact isnotnecesarrely ubn the roseter.
-	// this can leadtoa null exception
 	mContact = mRoster.getContact(contact.getJID());
+	if (mContact == null)
+	    mContact = contact;
 	updateContactInformations();
 	updateContactStatusIcon();