diff --git a/src/main/resources/templates/fragments/cardHeaderForSingleInputScreen.html b/src/main/resources/templates/fragments/cardHeaderForSingleInputScreen.html index eeea0f34..f7ac25e7 100644 --- a/src/main/resources/templates/fragments/cardHeaderForSingleInputScreen.html +++ b/src/main/resources/templates/fragments/cardHeaderForSingleInputScreen.html @@ -3,7 +3,7 @@ th:with=" hasSubtext=${!#strings.isEmpty(subtext)}, requiredInputsForFlow=${requiredInputs.get(flow)}, - isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)}" + isRequiredInput=${(requiredInputsForFlow != null && inputName != null && requiredInputsForFlow.getOrDefault(inputName, false)) || (required != null && required)}" th:assert="${!#strings.isEmpty(header)}" class="form-card__header">