# HG changeset patch # User Brad Greco # Date 1559266827 14400 # Node ID 3866c19535fdc477cc4c5709d86e2d870a94420f # Parent 48044d9ac000917f43e0798ef7d847f7429fb97b Fix NullReferenceException when checks are executed on a brand new server. diff -r 48044d9ac000 -r 3866c19535fd ServerMonitor/Forms/ServerSummaryForm.cs --- a/ServerMonitor/Forms/ServerSummaryForm.cs Thu May 30 21:40:02 2019 -0400 +++ b/ServerMonitor/Forms/ServerSummaryForm.cs Thu May 30 21:40:27 2019 -0400 @@ -127,7 +127,7 @@ /// The server to refresh. private void RefreshServer(Server server) { - ServerPanel.Controls.Cast().FirstOrDefault(c => c.Server == server).Refresh(); + ServerPanel.Controls.Cast().FirstOrDefault(c => c.Server == server)?.Refresh(); // The server's status might have changed, so refresh the form icon. UpdateIcon(); }