Fix potential stackoverflow

This commit is contained in:
crschnick
2026-09-09 20:08:04 +00:00
parent 259a503162
commit e1ac13e7fa
@@ -398,7 +398,7 @@ public abstract class DataStorage {
var categoryChanged = !entry.getCategoryUuid().equals(newEntry.getCategoryUuid());
if (entry.getStore() != null && newEntry.getStore() != null) {
if (entry.getStore() != null && newEntry.getStore() != null && newEntry.getStore() != entry.getStore()) {
synchronized (storeMoveCache) {
storeMoveCache.put(entry.getStore(), newEntry.getStore());
}
@@ -514,7 +514,7 @@ public abstract class DataStorage {
}
finalizeWithDependencies(entry);
if (entry.getStore() != null && store != null && !entry.getStore().equals(store)) {
if (entry.getStore() != null && store != null && entry.getStore() != store) {
synchronized (storeMoveCache) {
storeMoveCache.put(entry.getStore(), store);
}