[smuxi: 107/111] Frontend-GNOME: fixed NRE in Frontend.TryOpenChatLink() (closes: #953)
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 107/111] Frontend-GNOME: fixed NRE in Frontend.TryOpenChatLink() (closes: #953)
- Date: Sun, 16 Feb 2014 13:22:04 +0000 (UTC)
commit a53b49faf12f28ed8e0ee8431f82d649a8139b7e
Author: Mirco Bauer <meebey meebey net>
Date: Fri Feb 14 19:36:03 2014 +0100
Frontend-GNOME: fixed NRE in Frontend.TryOpenChatLink() (closes: #953)
src/Frontend-GNOME/Frontend.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Frontend-GNOME/Frontend.cs b/src/Frontend-GNOME/Frontend.cs
index cb79c5c..d03d69f 100644
--- a/src/Frontend-GNOME/Frontend.cs
+++ b/src/Frontend-GNOME/Frontend.cs
@@ -1,7 +1,7 @@
/*
* Smuxi - Smart MUltipleXed Irc
*
- * Copyright (c) 2005-2013 Mirco Bauer <meebey meebey net>
+ * Copyright (c) 2005-2014 Mirco Bauer <meebey meebey net>
*
* Full GPL License: <http://www.gnu.org/licenses/gpl.txt>
*
@@ -855,6 +855,10 @@ namespace Smuxi.Frontend.Gnome
// try to find a server with this network name and connect to it
var serverSettings = new ServerListController(UserConfig);
server = serverSettings.GetServerByNetwork(linkNetwork);
+ if (server == null) {
+ // in case someone tried an unknown network
+ return false;
+ }
// ignore OnConnectCommands
server.OnConnectCommands = null;
} else if (!String.IsNullOrEmpty(linkHost)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]