Handle cache crash

Not sure how this can happen.

Fixes APP-YN
This commit is contained in:
Vishesh Handa
2021-03-05 14:50:07 +01:00
parent 9e864a00b6
commit f2cf9dbfff

View File

@ -39,6 +39,9 @@ class NotesCache {
}
for (var fullFilePath in fileList) {
if (!fullFilePath.startsWith(notesBasePath)) {
continue;
}
var filePath = fullFilePath.substring(notesBasePath.length);
var components = filePath.split(sep);