pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

NullReferenceException in XmppCore.IqRequest #30

Open g4s8 opened 8 years ago

g4s8 commented 8 years ago

Hi. I've got NullReferenceException after call to XmppClient.GetRoster() with bad network connection.

Stacktrace:

System.NullReferenceException: Object reference not set to an instance of an object
  at Sharp.Xmpp.Core.XmppCore.IqRequest (Sharp.Xmpp.Core.Iq request, Int32 millisecondsTimeout) <0x990b8ae8 + 0x00248> in <filename unknown>:0 
  at Sharp.Xmpp.Im.XmppIm.IqRequest (IqType type, Sharp.Xmpp.Jid to, Sharp.Xmpp.Jid from, System.Xml.XmlElement data, System.Globalization.CultureInfo language, Int32 millisecondsTimeout) <0x990b6fb0 + 0x0024f> in <filename unknown>:0 
  at Sharp.Xmpp.Im.XmppIm.GetRoster () <0x990bc678 + 0x0007f> in <filename unknown>:0 
  at Sharp.Xmpp.Client.XmppClient.GetRoster () <0x9ab6c2a0 + 0x00027> in <filename unknown>:0 

Network config:

Sharp.Xmpp version is 1.0.2.2