mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-29 11:55:36 +00:00
Fix potential stackoverflow
This commit is contained in:
@@ -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