From c799bb0789327e5ed00010e77cc32ea1136cb8f0 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 11 Oct 2024 13:10:33 +0200 Subject: [PATCH] fix(GoogleDrive): includes is not a function Signed-off-by: Marcel Klehr --- src/lib/adapters/GoogleDrive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/adapters/GoogleDrive.ts b/src/lib/adapters/GoogleDrive.ts index 9d7f3fc35e..71d8a0c204 100644 --- a/src/lib/adapters/GoogleDrive.ts +++ b/src/lib/adapters/GoogleDrive.ts @@ -257,7 +257,7 @@ export default class GoogleDriveAdapter extends CachingAdapter { xmlDocText = await Crypto.decryptAES(this.server.password, xmlDocText, this.server.bookmark_file) } } catch (e) { - if (xmlDocText.includes('')) { + if (xmlDocText && xmlDocText.includes('')) { // not encrypted, yet => noop this.alwaysUpload = true } else {