Skip to content

Commit 0826679

Browse files
authored
fix: avoid edge cases (#628)
1 parent 3fee512 commit 0826679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export default class IconizePlugin extends Plugin {
538538
}
539539

540540
for (const openedFile of getAllOpenedFiles(this)) {
541-
if (openedFile.path !== file.path) {
541+
if (!file || !openedFile || openedFile.path !== file.path) {
542542
continue;
543543
}
544544

0 commit comments

Comments
 (0)