From 081bbaf011374181058a17080c84fd75a9eb67c6 Mon Sep 17 00:00:00 2001 From: celeron533 Date: Sun, 6 Aug 2017 22:48:02 +0800 Subject: [PATCH] Fix #1301. Configuration is not fully initialized and cause NullReferenceException crash --- shadowsocks-csharp/Model/Configuration.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Model/Configuration.cs b/shadowsocks-csharp/Model/Configuration.cs index e2a640a..4b6f49c 100644 --- a/shadowsocks-csharp/Model/Configuration.cs +++ b/shadowsocks-csharp/Model/Configuration.cs @@ -89,7 +89,10 @@ namespace Shadowsocks.Model configs = new List() { GetDefaultServer() - } + }, + logViewer = new LogViewerConfig(), + proxy = new ProxyConfig(), + hotkey = new HotkeyConfig() }; } }