Subject: NullRefException during connect
Hello,
In our application we have 2 Xmpp clients who simultaneously connect to 2 different Openfire servers.
I'm not sure if the 2 instances connecting at the same time results in some multi threading issue, but during this connecting we often see the following exception.
Should we be able to execute this scenario or do we have to change our code that we don't connect bot clients at the same time?
In our application we have 2 Xmpp clients who simultaneously connect to 2 different Openfire servers.
I'm not sure if the 2 instances connecting at the same time results in some multi threading issue, but during this connecting we often see the following exception.
Should we be able to execute this scenario or do we have to change our code that we don't connect bot clients at the same time?
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Matrix.Util.Enum.GetValues[T]()
at Matrix.Xmpp.Sasl.Mechanism.GetSaslMechanism(String mechanism)
at Matrix.Xmpp.Sasl.Mechanisms.<>c__DisplayClass1.<SupportsMechanism>b__0(Mechanism mech)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Matrix.SaslHandler.SelectSaslMechanism(Mechanisms mechanisms)
at Matrix.SaslHandler.StartSasl(StreamFeatures features)
at Matrix.Xml.XmppStreamParser.DoRaiseOnStreamElement(XmppXElement el)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Matrix.Util.Enum.GetValues[T]()
at Matrix.Xmpp.Sasl.Mechanism.GetSaslMechanism(String mechanism)
at Matrix.Xmpp.Sasl.Mechanisms.<>c__DisplayClass1.<SupportsMechanism>b__0(Mechanism mech)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Matrix.SaslHandler.SelectSaslMechanism(Mechanisms mechanisms)
at Matrix.SaslHandler.StartSasl(StreamFeatures features)
at Matrix.Xml.XmppStreamParser.DoRaiseOnStreamElement(XmppXElement el)