Skip to content

Commit

Permalink
[HaCreator] Fix nullreferenceexception if HaCreator is closed before …
Browse files Browse the repository at this point in the history
…wz file initialization
  • Loading branch information
lastbattle committed Dec 20, 2022
1 parent 11d6d51 commit 364b97c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HaCreator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ static void Main()
{
Application.Restart();
}
WzManager.Dispose();
if (WzManager != null) // doesnt initialise on load until WZ files are loaded via Initialization.xaml.cs
{
WzManager.Dispose();
}
}

/// <summary>
Expand Down

0 comments on commit 364b97c

Please sign in to comment.