Skip to content

Commit

Permalink
fix(analyze): don't check players rank if demo's players is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
akiver committed Dec 25, 2015
1 parent b2359e3 commit 0a2636d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ViewModel/DetailsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public RelayCommand WindowLoaded
PlayersTeam1Collection.SortDescriptions.Add(new SortDescription("RatingHltv", ListSortDirection.Descending));
PlayersTeam2Collection.SortDescriptions.Add(new SortDescription("RatingHltv", ListSortDirection.Descending));
RoundsCollection = CollectionViewSource.GetDefaultView(_currentDemo.Rounds);
if (AppSettings.IsInternetConnectionAvailable())
if (AppSettings.IsInternetConnectionAvailable() && CurrentDemo.Players.Any())
{
Task.Run(async () =>
{
Expand Down

0 comments on commit 0a2636d

Please sign in to comment.