Skip to content

Commit

Permalink
fix crash while creating new profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Sep 7, 2024
1 parent fb37cd3 commit c4097f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Project-Aurora/Project-Aurora/Settings/ObjectSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@ protected virtual async Task LoadSettings(Type settingsType)
Global.logger.Error(exc, "Exception occured while loading \\\"{Name}\\\" Settings", GetType().Name);
}
}
if (Equals(Settings, default(T)))
{
Settings = (T)Activator.CreateInstance(settingsType);
}
}
}

0 comments on commit c4097f8

Please sign in to comment.