We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7598bca + 7231f22 commit ca14202Copy full SHA for ca14202
spring-context/src/main/kotlin/org/springframework/ui/ModelExtensions.kt
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2017 the original author or authors
+ * Copyright 2002-2023 the original author or authors
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -26,6 +26,6 @@ package org.springframework.ui
26
* @author Mario Arias
27
* @since 5.0
28
*/
29
-operator fun Model.set(attributeName: String, attributeValue: Any) {
+operator fun Model.set(attributeName: String, attributeValue: Any?) {
30
this.addAttribute(attributeName, attributeValue)
31
}
0 commit comments