Skip to content

Commit

Permalink
Fix error of project alredy disposed (#1585)
Browse files Browse the repository at this point in the history
## Test plan

Quickly switch projects multiple times to reproduce the issue.
  • Loading branch information
pkukielka authored May 22, 2024
1 parent f8af279 commit 889afbf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class CodyFileEditorListener : FileEditorManagerListener {
}
}

if (project.isDisposed) return@invokeLater
FileEditorManager.getInstance(project).selectedTextEditor?.let { editor ->
val file = fileDocumentManager.getFile(editor.document)
try {
Expand Down

0 comments on commit 889afbf

Please sign in to comment.