Skip to content

Commit 0f47848

Browse files
authored
Merge pull request #223 from covexo/nilpointerfix
Fix nil pointer panic in devspace status
2 parents 4bac61c + 89b925f commit 0f47848

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)