mobile: fix crash during backup

This commit is contained in:
Ammar Ahmed
2024-04-30 00:16:30 +05:00
committed by Ammar Ahmed
parent fe91ef79a0
commit 1fbd2efb92

View File

@@ -252,7 +252,7 @@ async function run(progress = false, context) {
} catch (e) {
ToastManager.error(e, "Backup failed", context || "global");
if (e.message.includes("android.net.Uri") && androidBackupDirectory) {
if (e?.message?.includes("android.net.Uri") && androidBackupDirectory) {
SettingsService.setProperty("backupDirectoryAndroid", null);
return run(progress, context);
}