Skip to content

Commit 90c15f7

Browse files
Vaccine changes: possible NPE fix
1 parent c67461c commit 90c15f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/vaccination/VaccinationEditForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected void addFields() {
104104
vaccineName.addValueChangeListener(e -> {
105105
Vaccine vaccine = (Vaccine) e.getProperty().getValue();
106106
if (vaccine != null) {
107-
vaccineManufacturer.setValue(vaccine.getManufacturer().get());
107+
vaccineManufacturer.setValue(vaccine.getManufacturer().isEmpty() ? null : vaccine.getManufacturer().get());
108108

109109
// VaccineType
110110
if (vaccine.getVaccineType().isPresent()) {

0 commit comments

Comments
 (0)