catch null reference exception in RefreshServerListInner

closes #4964
This commit is contained in:
Matthias Mailänder
2014-03-31 13:27:50 +02:00
parent c4b28b9016
commit 7fb53e336a

View File

@@ -145,6 +145,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
public void RefreshServerListInner(IEnumerable<GameServer> games)
{
if (games == null)
return;
List<Widget> rows = new List<Widget>();
foreach (var loop in games.OrderByDescending(g => g.CanJoin()).ThenByDescending(g => g.Players))