Skip to content

Commit 1ae852f

Browse files
Merge pull request #12998 from SORMAS-Foundation/#12983-Exposure_data_tab_has_error_when_edit_or_save
#12983 - Exposure data tab has error when edit/save
2 parents 53fc622 + 0c831e4 commit 1ae852f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ private void addGeneratedColumns(Table table) {
226226

227227
table.addGeneratedColumn(COLUMN_SOURCE_CASE_NAME, (Table.ColumnGenerator) (source, itemId, columnId) -> {
228228
ExposureDto exposure = (ExposureDto) itemId;
229+
ContactReferenceDto contactToCase = exposure.getContactToCase();
229230
return !isPseudonymized
230-
? DataHelper.toStringNullable(getContactCaseName(exposure.getContactToCase()))
231+
? DataHelper.toStringNullable(contactToCase != null ? getContactCaseName(contactToCase) : null)
231232
: I18nProperties.getCaption(Captions.inaccessibleValue);
232233
});
233234
}

0 commit comments

Comments
 (0)