diff --git a/shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs b/shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs index 21a2666..faf86d2 100644 --- a/shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs +++ b/shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs @@ -93,6 +93,10 @@ namespace Shadowsocks.Controller.Strategy private void ChooseNewServer(List servers) { + if (statistics == null) + { + return; + } try { var bestResult = (from server in servers