Fix null ref exception

This commit is contained in:
Cj 2024-06-23 03:30:33 -04:00
parent 4824006d89
commit 22dc663012

View File

@ -20,7 +20,7 @@ public static class DataProvider
/// </summary> /// </summary>
public static bool IsCli { get; set; } = false; public static bool IsCli { get; set; } = false;
public static string DataPath => RegistryHelper.GetRegistryValue<string>("DataPath") ?? Path.Combine(AppContext.BaseDirectory, "Data"); public static string DataPath => Path.Combine(AppContext.BaseDirectory, "Data");
public static readonly string ReCodeItProjectsPath = Path.Combine(AppContext.BaseDirectory, "Projects"); public static readonly string ReCodeItProjectsPath = Path.Combine(AppContext.BaseDirectory, "Projects");