Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Skip placeHolder creation on link gen failure

Neeraj Gupta58b82b46f356
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index d3ef8bc524..d6ec440bb6 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -680,6 +680,10 @@ class _FileSelectionActionsWidgetState
_cachedCollectionForSharedLink ??= await collectionActions
.createSharedCollectionLink(context, split.ownedByCurrentUser);
+ if (_cachedCollectionForSharedLink == null) {
+ await dialog.hide();
+ return;
+ }
final List<EnteFile> ownedSelectedFiles = split.ownedByCurrentUser;
placeholderBytes = await _createPlaceholder(ownedSelectedFiles);
await dialog.hide();