Skip to content

Commit

Permalink
Added a null check in case arcdps_components.json could get corrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
Plenyx committed Jun 7, 2024
1 parent 4c41228 commit cf1f8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Forms/FormArcPluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ internal FormArcPluginManager(FormMain mainLink)
{
this.mainLink = mainLink;
var installedComponents = ArcDpsComponent.DeserialiseAll(ApplicationSettings.LocalDir);
if (installedComponents is null)
{
installedComponents = new();
}
InitializeComponent();
Icon = Properties.Resources.AppIcon;
var availableComponents = ArcDpsComponentHelperClass.All;
Expand Down

0 comments on commit cf1f8a8

Please sign in to comment.