This commit is contained in:
何冠峰
2025-11-07 16:23:51 +08:00
parent 304222b788
commit 29fbbd97ff

View File

@@ -88,8 +88,8 @@ namespace YooAsset.Editor
} }
catch (Exception ex) catch (Exception ex)
{ {
ClearDatabase(true);
Debug.LogError($"Failed to load cache database : {ex.Message}"); Debug.LogError($"Failed to load cache database : {ex.Message}");
ClearDatabase(true);
} }
finally finally
{ {
@@ -169,7 +169,8 @@ namespace YooAsset.Editor
File.Delete(_databaseFilePath); File.Delete(_databaseFilePath);
} }
_database.Clear(); if (_database != null)
_database.Clear();
} }
/// <summary> /// <summary>