File tree Expand file tree Collapse file tree
sormas-app/app/src/main/java/de/symeda/sormas/app/contact/edit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,9 @@ private void updateContactCategory(FragmentContactNewLayoutBinding contentBindin
162162 ContactCategory highestCategory = null ;
163163 if (proximities != null ) {
164164 for (ContactProximity proximity : proximities ) {
165+ if (proximity == null ) {
166+ continue ;
167+ }
165168 ContactCategory category = getContactCategoryForProximity (proximity );
166169 if (category != null && (highestCategory == null || category .ordinal () < highestCategory .ordinal ())) {
167170 highestCategory = category ;
@@ -172,6 +175,9 @@ private void updateContactCategory(FragmentContactNewLayoutBinding contentBindin
172175 }
173176
174177 private ContactCategory getContactCategoryForProximity (ContactProximity proximity ) {
178+ if (proximity == null ) {
179+ return null ;
180+ }
175181 switch (proximity ) {
176182 case FACE_TO_FACE_LONG :
177183 case TOUCHED_FLUID :
You can’t perform that action at this time.
0 commit comments