Allow null attribute value in Model.set()

See gh-27115
This commit is contained in:
Gergely Nagy
2021-07-01 11:27:59 +02:00
committed by Stephane Nicoll
parent 7598bca799
commit 3470240ef0

View File

@@ -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)
}