Skip to content

Commit

Permalink
Fix #409
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingKing-AM committed Feb 24, 2023
1 parent 488454f commit af5ca1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class FileManager {
getFolderPathList(file: TFile): TFolder[] {
let result: TFolder[] = []
let abstractFile: TAbstractFile = file
while (abstractFile.hasOwnProperty('parent')) {
while (abstractFile && abstractFile.hasOwnProperty('parent')) {
result.push(abstractFile.parent)
abstractFile = abstractFile.parent
}
Expand Down

0 comments on commit af5ca1c

Please sign in to comment.