Skip to content

Commit

Permalink
QA-15247: Remove invalid error message (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
gflores-jahia authored Aug 26, 2024
1 parent c586a03 commit 4066545
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -881,14 +881,8 @@ private EditorFormField generateEditorFormField(ExtendedItemDefinition itemDefin

private List<EditorFormFieldValueConstraint> getValueConstraints(ExtendedNodeType primaryNodeType, EditorFormField editorFormField, JCRNodeWrapper existingNode, JCRNodeWrapper parentNode, Locale locale, Map<String, Object> extendContext) throws RepositoryException {
ExtendedPropertyDefinition propertyDefinition = editorFormField.getExtendedPropertyDefinition();
if (propertyDefinition == null) {
logger.error("Missing property definition to resolve choice list values, cannot process");
return editorFormField.getValueConstraints();
}

List<EditorFormProperty> selectorOptions = editorFormField.getSelectorOptions();

if (!selectorOptions.isEmpty() && propertyDefinition.getSelector() == SelectorType.CHOICELIST) {
if (propertyDefinition != null && propertyDefinition.getSelector() == SelectorType.CHOICELIST) {
List<EditorFormProperty> selectorOptions = editorFormField.getSelectorOptions();
Map<String, ChoiceListInitializer> initializers = choiceListInitializerService.getInitializers();

Map<String, Object> context = new HashMap<>();
Expand Down

0 comments on commit 4066545

Please sign in to comment.