From 9b4f5d2fe121cd9332031abbf540d9a845cfc55d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:51:47 +0200 Subject: [PATCH] JBPM-10193 UI error: unexpected system error occurred when access Form asset and also Task form which have listbox component (#3819) (#3821) Co-authored-by: Bai Xiaofeng --- .../rendering/renderers/selectors/SelectorFieldRenderer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kie-wb-common-forms/kie-wb-common-dynamic-forms/kie-wb-common-dynamic-forms-client/src/main/java/org/kie/workbench/common/forms/dynamic/client/rendering/renderers/selectors/SelectorFieldRenderer.java b/kie-wb-common-forms/kie-wb-common-dynamic-forms/kie-wb-common-dynamic-forms-client/src/main/java/org/kie/workbench/common/forms/dynamic/client/rendering/renderers/selectors/SelectorFieldRenderer.java index 92d3d8d1d1c..74b7b37d542 100644 --- a/kie-wb-common-forms/kie-wb-common-dynamic-forms/kie-wb-common-dynamic-forms-client/src/main/java/org/kie/workbench/common/forms/dynamic/client/rendering/renderers/selectors/SelectorFieldRenderer.java +++ b/kie-wb-common-forms/kie-wb-common-dynamic-forms/kie-wb-common-dynamic-forms-client/src/main/java/org/kie/workbench/common/forms/dynamic/client/rendering/renderers/selectors/SelectorFieldRenderer.java @@ -66,7 +66,9 @@ public void refreshSelectorOptions() { backendSelectorDataProviderService.call(new RemoteCallback() { @Override public void callback(SelectorData data) { - refreshSelectorOptions(data); + if (data.getValues() != null) { + refreshSelectorOptions(data); + } } }).getDataFromProvider(renderingContext, field.getDataProvider());