file exists

This commit is contained in:
Pilzinsel64
2025-07-31 09:13:48 +02:00
parent f4530aee4f
commit c6ef91fde7

View File

@@ -8,8 +8,11 @@ public class JsonFileContainer(string filePath) : JsonDataContainer
{ {
lock (_lock_FileAction) lock (_lock_FileAction)
{ {
using var sw = new StreamReader(filePath); if (File.Exists(filePath))
GetSerializer().Populate(sw, this); {
using var sw = new StreamReader(filePath);
GetSerializer().Populate(sw, this);
}
} }
} }