mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-28 19:35:41 +00:00
Make store creation more resilient when parent is deleted
This commit is contained in:
@@ -115,7 +115,7 @@ public class StoreCreationComp extends DialogComp {
|
||||
DataStorage.get().getSelectedCategory().getUuid(),
|
||||
name.getValue(),
|
||||
store.getValue());
|
||||
var p = provider.getValue().getDisplayParent(testE);
|
||||
var p = DataStorage.get().getDefaultDisplayParent(testE).orElse(null);
|
||||
|
||||
var targetCategory = p != null
|
||||
? p.getCategoryUuid()
|
||||
@@ -271,6 +271,11 @@ public class StoreCreationComp extends DialogComp {
|
||||
}
|
||||
|
||||
ThreadHelper.runAsync(() -> {
|
||||
// Might have changed since last time
|
||||
if (entry.getValue() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try (var b = new BooleanScope(busy).start()) {
|
||||
DataStorage.get().addStoreEntryInProgress(entry.getValue());
|
||||
entry.getValue().validateOrThrow();
|
||||
|
||||
Reference in New Issue
Block a user