BookMarkmanager exception

2 views
Skip to first unread message

wpeters1981

unread,
Dec 9, 2009, 6:05:35 AM12/9/09
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?

Reply all
Reply to author
Forward
0 new messages