fix a crash

This commit is contained in:
clowwindy
2015-07-25 19:05:37 +08:00
parent 008e3544f2
commit dafe33f7ed
4 changed files with 40 additions and 8 deletions
@@ -125,7 +125,7 @@ namespace Shadowsocks.View
_notifyIcon.Icon = Icon.FromHandle(icon.GetHicon());
string serverInfo = null;
if (config.strategy != null)
if (controller.GetCurrentStrategy() != null)
{
serverInfo = controller.GetCurrentStrategy().Name;
}