Skip to content

Commit 3967ba0

Browse files
authored
Merge pull request #13728 from SORMAS-Foundation/bugfix-13702-error_clicking_person_directory
#13702 - Fixed issue caused by null pointer exception when clicking o…
2 parents cc60f93 + 73cee98 commit 3967ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sormas-ui/src/main/java/de/symeda/sormas/ui/person/PersonEditForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ protected void addFields() {
728728
minimumAdultAge = FacadeProvider.getConfigFacade().getMinimumAdultAge();
729729
minimumEmancipatedAge = FacadeProvider.getConfigFacade().getMinimumEmancipatedAge();
730730

731-
if (!List.of(Disease.RESPIRATORY_SYNCYTIAL_VIRUS).contains(disease)) {
731+
if (disease != null && disease != Disease.RESPIRATORY_SYNCYTIAL_VIRUS) {
732732
perinatalDetailsHeader.setVisible(false);
733733
}
734734
}

0 commit comments

Comments
 (0)