From 683fa2d49442b03f7210cc1a91f03fbc21bcc9b6 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 19 Oct 2022 18:07:09 -0500 Subject: [PATCH] avoid NPE if no tableMetaData when calling DynamicFormUtils.addPossibleValueProps --- src/qqq/pages/process-run/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qqq/pages/process-run/index.tsx b/src/qqq/pages/process-run/index.tsx index 5428ad7..601c9ff 100644 --- a/src/qqq/pages/process-run/index.tsx +++ b/src/qqq/pages/process-run/index.tsx @@ -629,7 +629,10 @@ function ProcessRun({process, defaultProcessValues, isModal, recordIds, closeMod { let fullFieldList = getFullFieldList(activeStep, processValues); const formData = DynamicFormUtils.getFormData(fullFieldList); - DynamicFormUtils.addPossibleValueProps(formData.dynamicFormFields, fullFieldList, tableMetaData.name, null); + if(tableMetaData) + { + DynamicFormUtils.addPossibleValueProps(formData.dynamicFormFields, fullFieldList, tableMetaData.name, null); + } dynamicFormFields = formData.dynamicFormFields; formValidations = formData.formValidations;