Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 70b69ce

Browse files
SORMAS-Foundation#4055 fix exception when adding exposures as Case Officer (SORMAS-Foundation#4109)
* Preliminary fix SORMAS-Foundation#4055 * Remove useless header setting in fix for SORMAS-Foundation#4055
1 parent a8a2c32 commit 70b69ce

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/exposure/ExposureForm.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ public void setValue(ExposureDto newFieldValue) throws ReadOnlyException, Conver
324324

325325
if (epiDataParentClass == CaseDataDto.class) {
326326
ComboBox cbContactToCase = getField(ExposureDto.CONTACT_TO_CASE);
327-
cbContactToCase.addItems(sourceContacts);
327+
if (sourceContacts != null) {
328+
cbContactToCase.addItems(sourceContacts);
329+
}
328330
cbContactToCase.getItemIds().forEach(i -> cbContactToCase.setItemCaption(i, ((ContactReferenceDto) i).getCaptionAlwaysWithUuid()));
329331
}
330332
}

0 commit comments

Comments
 (0)