TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

NullReferenceException in the OnContactChanged event #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't know exactly how to reproduce it, but the OncontactJoined method 
sometime receives a null object.

So, in SBMessageHandler.cs, line 613, I made this :

protected virtual void OnContactJoined(Contact contact)
{
    if (contact != null)
    {
        SetContactState(contact.Mail, ContactConversationState.Joined);
        if (ContactJoined != null)
        {
            ContactJoined(this, new ContactEventArgs(contact));
        }
    }
}

Original issue reported on code.google.com by adh...@gmail.com on 24 Aug 2009 at 8:12

GoogleCodeExporter commented 9 years ago
What version are you using? Still 2.5.7? Can you give me the calling stack 
trace 
when this problem occured?

Original comment by freezing...@gmail.com on 24 Aug 2009 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 4 Sep 2009 at 3:36