title: Kotlin Spring Jdbc Cannot Use NULL
body: <p>I have the following method in a Spring Boot application using Kotlin. It won't compile because addValue method takes String paramName, and Object value. In my case passing NULL is a valid case, because I want all bankers, not ones from a specific branch.</p>
  
  <p>Is there anyway to work around this in Kotlin. </p>
  
  <pre><code>override fun getBankers(branchId: UUID?): Iterable&lt;Banker&gt; {
      val query = this.sql.getProperty("banker.selectByBranch")
      val params = MapSqlParameterSource()
              .addValue("branchId", null)
      return this.jdbcTemplate.query(query, params, BankerRowMapper())
  }
  </code></pre>
  
  <p>If I do branchId!! I get an NPE.</p>