Skip to content

Commit e89ebb6

Browse files
Kevin-LooongKevin Long
authored andcommitted
Add corner case check for null value in expandSqlServerAuditConfig function (GoogleCloudPlatform#12787)
Co-authored-by: Kevin Long <[email protected]>
1 parent 0eba3d2 commit e89ebb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ func expandSqlServerAdvancedMachineFeatures(configured interface{}) *sqladmin.Ad
16311631

16321632
func expandSqlServerAuditConfig(configured interface{}) *sqladmin.SqlServerAuditConfig {
16331633
l := configured.([]interface{})
1634-
if len(l) == 0 {
1634+
if len(l) == 0 || l[0] == nil{
16351635
return nil
16361636
}
16371637

0 commit comments

Comments
 (0)