Skip to content

Commit

Permalink
Fix NullPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Dec 27, 2016
1 parent 9f70843 commit f20ede8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion JMMServer/ServerSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ public static void LoadSettingsFromFile(string tmp_setting_file, bool delete_tmp
{
MessageBox.Show(Properties.Resources.Migration_AdminFail, Properties.Resources.Migration_Header,
MessageBoxButton.OK, MessageBoxImage.Information);
MainWindow.Instance.ApplicationShutdown();
// This should be okay, since we are still in MainWindow Init
Application.Current.Shutdown();
return;
}

Expand Down

0 comments on commit f20ede8

Please sign in to comment.