We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8071950 commit bc9f629Copy full SHA for bc9f629
internal/pkg/utils/utils.go
@@ -254,7 +254,7 @@ func ConvertToBase64PatchedServers(servers []iaas.Server) []Base64PatchedServer
254
// GetSliceFromPointer returns the value of a pointer to a slice of type T.
255
// If the pointer is nil, it returns an empty slice.
256
func GetSliceFromPointer[T any](s *[]T) []T {
257
- if s == nil {
+ if s == nil || *s == nil {
258
return []T{}
259
}
260
return *s
0 commit comments