[smuxi/stable] Engine-XMPP: fix potential NRE in XmppProtocolManager.OnGroupChatPresenceError()
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/stable] Engine-XMPP: fix potential NRE in XmppProtocolManager.OnGroupChatPresenceError()
- Date: Sat, 13 Feb 2016 12:56:48 +0000 (UTC)
commit c69ef66e7cb7724c7cecaee1c1fc259f00a234e7
Author: Mirco Bauer <meebey meebey net>
Date: Sat Feb 13 13:49:59 2016 +0100
Engine-XMPP: fix potential NRE in XmppProtocolManager.OnGroupChatPresenceError()
If pres.Error is null it will lead to a NRE in the switch statement.
.../Protocols/Xmpp/XmppProtocolManager.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine-XMPP/Protocols/Xmpp/XmppProtocolManager.cs
b/src/Engine-XMPP/Protocols/Xmpp/XmppProtocolManager.cs
index 5b1367a..8006c3c 100644
--- a/src/Engine-XMPP/Protocols/Xmpp/XmppProtocolManager.cs
+++ b/src/Engine-XMPP/Protocols/Xmpp/XmppProtocolManager.cs
@@ -1920,6 +1920,7 @@ namespace Smuxi.Engine
if (pres.Error == null) {
Session.AddMessageToChat(NetworkChat, msg);
Session.RemoveChat(chat);
+ return;
}
// is there an action we can do silently?
switch (pres.Error.Type) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]