Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 2e99f23

Browse files
committed
handle segfault due to nil pointer
1 parent 118108c commit 2e99f23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/gui/cluster.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ func (gui *Gui) onClusterInfoClick(g *gocui.Gui, v *gocui.View) error {
3939
func (gui *Gui) reRenderClusterInfo() error {
4040

4141
clusterView := gui.getClusterInfoView()
42+
if clusterView == nil {
43+
return nil
44+
}
4245

4346
info, err := gui.k8sClient.GetServerInfo()
4447
if err != nil {

0 commit comments

Comments
 (0)