From c770a89083f13d685deb860a3510e7d3484e2a8c Mon Sep 17 00:00:00 2001 From: MaxXor Date: Sat, 8 Aug 2015 18:44:10 +0200 Subject: [PATCH] Fixed null check --- Server/Forms/FrmReverseProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Forms/FrmReverseProxy.cs b/Server/Forms/FrmReverseProxy.cs index d3365cba..19ec0ed1 100644 --- a/Server/Forms/FrmReverseProxy.cs +++ b/Server/Forms/FrmReverseProxy.cs @@ -110,7 +110,7 @@ private void FrmReverseProxy_FormClosing(object sender, FormClosingEventArgs e) for (int i = 0; i < _clients.Length; i++) { - if (_clients[i].Value != null) + if (_clients[i] != null && _clients[i].Value != null) _clients[i].Value.FrmProxy = null; } }