diff --git a/Fantome/Fantome.csproj b/Fantome/Fantome.csproj
index e3c10ba..475e8b1 100644
--- a/Fantome/Fantome.csproj
+++ b/Fantome/Fantome.csproj
@@ -4,13 +4,13 @@
WinExe
netcoreapp3.1
true
- 1.1.4.0
+ 1.1.5.1
Crauzer
- 1.1.4.0
+ 1.1.5.1
x64
app.manifest
Resources\icon.ico
- 1.1.4
+ 1.1.5.1
GPL-3.0-or-later
https://github.com/LoL-Fantome/Fantome
https://github.com/LoL-Fantome/Fantome
diff --git a/Fantome/MainWindow.xaml.cs b/Fantome/MainWindow.xaml.cs
index d526171..622fb9b 100644
--- a/Fantome/MainWindow.xaml.cs
+++ b/Fantome/MainWindow.xaml.cs
@@ -121,7 +121,7 @@ protected override void OnStateChanged(EventArgs e)
}
private void OnClosing(object sender, CancelEventArgs e)
{
- this.ViewModel.TrayIcon.Dispose();
+ this.ViewModel?.TrayIcon.Dispose();
}
private async void OnDrop(object sender, System.Windows.DragEventArgs e)
{