diff --git a/internal/namespaces/instance/v1/custom_server_type.go b/internal/namespaces/instance/v1/custom_server_type.go index 9b4f6d3beb..7024bf6e19 100644 --- a/internal/namespaces/instance/v1/custom_server_type.go +++ b/internal/namespaces/instance/v1/custom_server_type.go @@ -139,8 +139,11 @@ func serverTypeListBuilder(c *core.Command) *core.Command { for _, pcuServerType := range listServersTypesResponse.Products { name := pcuServerType.Properties.Instance.OfferID serverType := &customServerType{ - Name: name, - HourlyPrice: pcuServerType.Price.RetailPrice, + Name: name, + } + + if pcuServerType.Price != nil && pcuServerType.Price.RetailPrice != nil { + serverType.HourlyPrice = pcuServerType.Price.RetailPrice } if availability, exists := availabilitiesResponse.Servers[name]; exists {