Skip to content

Commit

Permalink
Fix case when StatusBar is not yet initialized (#307)
Browse files Browse the repository at this point in the history
Fixes: #304
  • Loading branch information
MarcinVaadin authored Feb 10, 2025
1 parent 8df7fdc commit da19504
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class VaadinStatusBarWidget(private val project: Project) : StatusBarWidget, Sta
const val ID = "VaadinStatusBarPanel"

fun update(project: Project) {
WindowManager.getInstance().getStatusBar(project).updateWidget(ID)
WindowManager.getInstance().getStatusBar(project)?.updateWidget(ID)
}
}

Expand Down

0 comments on commit da19504

Please sign in to comment.