Skip to content

Commit bc9f629

Browse files
committed
fix utils
1 parent 8071950 commit bc9f629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func ConvertToBase64PatchedServers(servers []iaas.Server) []Base64PatchedServer
254254
// GetSliceFromPointer returns the value of a pointer to a slice of type T.
255255
// If the pointer is nil, it returns an empty slice.
256256
func GetSliceFromPointer[T any](s *[]T) []T {
257-
if s == nil {
257+
if s == nil || *s == nil {
258258
return []T{}
259259
}
260260
return *s

0 commit comments

Comments
 (0)