wpeters1981
unread,Dec 9, 2009, 6:05:35 AM12/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jabber-net
I am connecting to a server that somehow has created conferences with
a malformed JID.
foreach (BookmarkConference conf in bm.GetConferences())
{
if (conf.JID == null)
continue;
m_conferences[conf.JID] = conf;
if (OnConferenceAdd != null)
OnConferenceAdd(this, conf);
if (conf.AutoJoin && (m_confManager != null))
{
JID rJID = conf.JID;
JID roomAndNick = new JID(rJID.User, rJID.Server,
conf.Nick);
Room r = m_confManager.GetRoom(roomAndNick);
r.Join(conf.Password);
}
}
this will give an exception on conf.jid == null ('conf.JID' threw an
exception of type 'jabber.JIDFormatException')
i am using 2.1.2, is there a way to capture this unhandled exception
and continue working but ignoring this conference?