@@ -475,7 +475,9 @@ func (s *DbSystemResourceCrud) Update() error {
475475 interfaces := sshPublicKeys .([]interface {})
476476 tmp := make ([]string , len (interfaces ))
477477 for i := range interfaces {
478- tmp [i ] = interfaces [i ].(string )
478+ if interfaces [i ] != nil {
479+ tmp [i ] = interfaces [i ].(string )
480+ }
479481 }
480482 request .SshPublicKeys = tmp
481483 }
@@ -924,7 +926,9 @@ func (s *DbSystemResourceCrud) populateTopLevelPolymorphicLaunchDbSystemRequest(
924926 interfaces := sshPublicKeys .([]interface {})
925927 tmp := make ([]string , len (interfaces ))
926928 for i := range interfaces {
927- tmp [i ] = interfaces [i ].(string )
929+ if interfaces [i ] != nil {
930+ tmp [i ] = interfaces [i ].(string )
931+ }
928932 }
929933 details .SshPublicKeys = tmp
930934 }
@@ -1016,7 +1020,9 @@ func (s *DbSystemResourceCrud) populateTopLevelPolymorphicLaunchDbSystemRequest(
10161020 interfaces := sshPublicKeys .([]interface {})
10171021 tmp := make ([]string , len (interfaces ))
10181022 for i := range interfaces {
1019- tmp [i ] = interfaces [i ].(string )
1023+ if interfaces [i ] != nil {
1024+ tmp [i ] = interfaces [i ].(string )
1025+ }
10201026 }
10211027 details .SshPublicKeys = tmp
10221028 }
0 commit comments