From 362cb12e20d4372377b50cf60f705bb752b1591e Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 3 Jan 2024 15:23:13 +0000 Subject: [PATCH] Fix exceptions on provider switch --- .../main/java/io/xpipe/app/comp/store/GuiDsStoreCreator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/comp/store/GuiDsStoreCreator.java b/app/src/main/java/io/xpipe/app/comp/store/GuiDsStoreCreator.java index 913bc8fa4..fae8ab4f2 100644 --- a/app/src/main/java/io/xpipe/app/comp/store/GuiDsStoreCreator.java +++ b/app/src/main/java/io/xpipe/app/comp/store/GuiDsStoreCreator.java @@ -223,6 +223,9 @@ public class GuiDsStoreCreator extends MultiStepComp.Step> { return provider.getValue() == null || store.getValue() == null || !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,