Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
poma committed Feb 20, 2017
1 parent 07bf59a commit 4cbdc39
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,4 @@ _Pvt_Extensions
.idea/
*.sln.iml
/replay.server.battlelobby
/packages
2 changes: 1 addition & 1 deletion Heroes.ReplayParser
8 changes: 7 additions & 1 deletion StatsDisplay/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ internal void ProcessLobbyFile(string path)
internal async void ProcessRejoinFile(string path)
{
try {
await FileProcessor.ProcessRejoinAsync(path, Game);
if (Game == null) {
return;
}
await FileProcessor.ProcessRejoinAsync(path, Game);
_currentWindow?.Close();
_currentWindow = new FullStatsWindow();

Expand All @@ -131,6 +134,9 @@ internal async void ProcessRejoinFile(string path)
internal async void ProcessReplayFile(string path)
{
if (Settings.ShowRecap) {
if (Game == null) {
return;
}
await FileProcessor.ProcessReplayFile(path, Game);
_currentWindow?.Close();
_currentWindow = new RecapStatsWindow();
Expand Down
4 changes: 2 additions & 2 deletions StatsDisplay/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.2")]
[assembly: AssemblyFileVersion("0.6.2")]
[assembly: AssemblyVersion("0.6.3")]
[assembly: AssemblyFileVersion("0.6.3")]

0 comments on commit 4cbdc39

Please sign in to comment.