Skip to content

armgit / ente

Public Imported from GitHub
0

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

Guard public album link result

Neeraj Gupta6a0f2e45f140
diff --git a/mobile/apps/photos/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
index d39405f4ef..c717599771 100644
--- a/mobile/apps/photos/lib/ui/tabs/home_widget.dart
+++ b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
@@ -381,6 +381,9 @@ class _HomeWidgetState extends State<HomeWidget> {
final Collection? collection = await CollectionsService.instance
.getCollectionFromPublicLink(context, uri);
+ if (!mounted) {
+ return;
+ }
if (collection == null) {
return;
}