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

Commit

Permalink
handle segfault due to nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
yolossn committed Sep 13, 2020
1 parent 118108c commit 2e99f23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gui/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ func (gui *Gui) onClusterInfoClick(g *gocui.Gui, v *gocui.View) error {
func (gui *Gui) reRenderClusterInfo() error {

clusterView := gui.getClusterInfoView()
if clusterView == nil {
return nil
}

info, err := gui.k8sClient.GetServerInfo()
if err != nil {
Expand Down

0 comments on commit 2e99f23

Please sign in to comment.