Skip to content

Commit

Permalink
- fixed NullReferenceException when trying to connect to a server whi…
Browse files Browse the repository at this point in the history
…ch didn't provide any data
  • Loading branch information
PredatH0r committed Jun 26, 2015
1 parent 8137d6d commit 46630c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ServerBrowser/ServerBrowserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public partial class ServerBrowserForm : XtraForm
};
#endregion

private const string Version = "1.6.3";
private const string Version = "1.6.4";
private string brandingUrl;
private List<ServerRow> servers;
private ServerRow lastSelectedServer;
Expand Down Expand Up @@ -591,6 +591,9 @@ private void UpdateGridDataSources(ServerRow row)
#region ConnectToGameServer()
private void ConnectToGameServer(ServerRow row, bool spectate)
{
if (row.ServerInfo == null)
return;

string password = null;
if (row.ServerInfo.IsPrivate)
{
Expand Down

0 comments on commit 46630c4

Please sign in to comment.