Skip to content

Commit e71d5ac

Browse files
authored
Fix NPE in CSFLE executor (#1432)
1 parent 8c013c2 commit e71d5ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

schemaregistry/rules/encryption/encrypt_executor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ func (f *FieldEncryptionExecutor) Configure(clientConfig *schemaregistry.Config,
134134
f.Config[key] = value
135135
}
136136
}
137-
} else {
137+
} else if config != nil {
138138
f.Config = config
139+
} else {
140+
f.Config = make(map[string]string)
139141
}
140142
return nil
141143
}

0 commit comments

Comments
 (0)