Ensuire Persist.dirtySince is not null even after file loading

This commit is contained in:
Marc Baloup 2022-12-23 17:27:37 +01:00
parent ebb7b5b4c5
commit 5166dd8188
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -42,6 +42,10 @@ public class Persist {
catch (final JsonParseException e) { catch (final JsonParseException e) {
Log.severe("cannot load " + file, e); Log.severe("cannot load " + file, e);
} }
finally {
if (dirtySince == null)
dirtySince = new HashMap<>();
}
if (!loaded) { if (!loaded) {
save(); save();