Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

empty list error

laurenspriem8304bca71c18
diff --git a/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart b/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
index 7311e81de5..854c69e4c0 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/person_gallery_suggestion.dart
@@ -101,7 +101,9 @@ class _PersonGallerySuggestionState extends State<PersonGallerySuggestion>
} else {
suggestions = await ClusterFeedbackService.instance
.getAllLargePersonSuggestions();
- person = suggestions.first.person;
+ if (suggestions.isNotEmpty) {
+ person = suggestions.first.person;
+ }
}
if (suggestions.isNotEmpty && mounted) {