Skip to content

Commit 89b925f

Browse files
committed
Fix nil pointer panic in devspace status
1 parent ff3f889 commit 89b925f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/status.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (cmd *StatusCmd) RunStatus(cobraCmd *cobra.Command, args []string) {
115115
"",
116116
err.Error(),
117117
})
118-
} else {
118+
} else if registryStatus != nil {
119119
values = append(values, registryStatus)
120120
}
121121

@@ -154,6 +154,10 @@ func (cmd *StatusCmd) RunStatus(cobraCmd *cobra.Command, args []string) {
154154
func (cmd *StatusCmd) getRegistryStatus() ([]string, error) {
155155
config := configutil.GetConfig(false)
156156
registry := config.Services.InternalRegistry
157+
if registry == nil {
158+
return nil, nil
159+
}
160+
157161
releases, err := cmd.helm.Client.ListReleases()
158162

159163
if err != nil {

0 commit comments

Comments
 (0)