mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
Handle cache crash
Not sure how this can happen. Fixes APP-YN
This commit is contained in:
@ -39,6 +39,9 @@ class NotesCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (var fullFilePath in fileList) {
|
for (var fullFilePath in fileList) {
|
||||||
|
if (!fullFilePath.startsWith(notesBasePath)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
var filePath = fullFilePath.substring(notesBasePath.length);
|
var filePath = fullFilePath.substring(notesBasePath.length);
|
||||||
var components = filePath.split(sep);
|
var components = filePath.split(sep);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user