Skip to content

Commit

Permalink
avniproject/avni-webapp#1257 | Fix for broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Sep 24, 2024
1 parent 92cd113 commit ce290f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public void validateForm(FormContract formContract) throws InvalidObjectExceptio
formContract.getUuid(),
conceptUuid));
}
if (multiSelectTypes.contains(ConceptDataType.valueOf(formElement.getConcept().getDataType()))) {
String conceptDataType = formElement.getConcept().getDataType();
if (conceptDataType != null && multiSelectTypes.contains(ConceptDataType.valueOf(conceptDataType))) {
FormElement existingFormElement = formElementRepository.findByUuid(formElement.getUuid());
if (existingFormElement != null) {
if (!existingFormElement.getType().equals(formElement.getType())) {
Expand Down

0 comments on commit ce290f3

Please sign in to comment.