Skip to content

Commit ed57ac8

Browse files
committed
Fix trying app to update nav panel on disposed instance
revert
1 parent f13320b commit ed57ac8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/kotlin/org/digma/intellij/plugin/ui/common/NavigationPanel.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ class NavigationPanel(
9494

9595
private fun rebuild(model: PanelModel) {
9696
ApplicationManager.getApplication().invokeLater {
97-
removeExistingComponentsIfPresent()
98-
buildNavigationPanelComponents(model)
99-
revalidate()
97+
if (!project.isDisposed) {
98+
removeExistingComponentsIfPresent()
99+
buildNavigationPanelComponents(model)
100+
revalidate()
101+
}
100102
}
101103
}
102104

0 commit comments

Comments
 (0)