Skip to content

Commit

Permalink
Allow null attribute value in Model.set()
Browse files Browse the repository at this point in the history
  • Loading branch information
gnagy authored and snicoll committed Aug 26, 2023
1 parent 7598bca commit 3470240
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,6 +26,6 @@ package org.springframework.ui
* @author Mario Arias
* @since 5.0
*/
operator fun Model.set(attributeName: String, attributeValue: Any) {
operator fun Model.set(attributeName: String, attributeValue: Any?) {
this.addAttribute(attributeName, attributeValue)
}

0 comments on commit 3470240

Please sign in to comment.