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 {