File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ export default class GoogleDriveAdapter extends CachingAdapter {
264264 throw new DecryptionError ( )
265265 }
266266 }
267- } else if ( ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) ) {
267+ } else if ( ! xmlDocText || ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) ) {
268268 throw new FileUnreadableError ( )
269269 }
270270
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ export default class WebDavAdapter extends CachingAdapter {
227227 throw new DecryptionError ( )
228228 }
229229 }
230- } else if ( ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) && ! xmlDocText . includes ( '<!DOCTYPE NETSCAPE-Bookmark-file-1>' ) ) {
230+ } else if ( ! xmlDocText || ( ! xmlDocText . includes ( '<?xml version="1.0" encoding="UTF-8"?>' ) && ! xmlDocText . includes ( '<!DOCTYPE NETSCAPE-Bookmark-file-1>' ) ) ) {
231231 throw new FileUnreadableError ( )
232232 }
233233
You can’t perform that action at this time.
0 commit comments