mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-06 07:01:29 +00:00
Fix potential stackoverflow
This commit is contained in:
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user