mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 23:50:32 +00:00
Fix exceptions on provider switch
This commit is contained in:
parent
d8b2c44489
commit
362cb12e20
1 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,9 @@ public class GuiDsStoreCreator extends MultiStepComp.Step<CompStructure<?>> {
|
||||||
return provider.getValue() == null
|
return provider.getValue() == null
|
||||||
|| store.getValue() == null
|
|| store.getValue() == null
|
||||||
|| !store.getValue().isComplete()
|
|| !store.getValue().isComplete()
|
||||||
|
// When switching providers, both observables change one after another.
|
||||||
|
// So temporarily there might be a store class mismatch
|
||||||
|
|| provider.getValue().getStoreClasses().stream().noneMatch(aClass -> aClass.isAssignableFrom(store.getValue().getClass()))
|
||||||
|| provider.getValue().createInsightsMarkdown(store.getValue()) == null;
|
|| provider.getValue().createInsightsMarkdown(store.getValue()) == null;
|
||||||
},
|
},
|
||||||
provider,
|
provider,
|
||||||
|
|
Loading…
Reference in a new issue