The addValue methods of MapSqlParameterSource explicitly allows null values (org.springframework.lang.Nullable), but you're not able to set it if you try to use the Kotlin extension methods.