mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
Detect custom deserialized NullValue instances
Closes gh-36727
(cherry picked from commit 916cb64581)
This commit is contained in:
Vendored
+1
-1
@@ -87,7 +87,7 @@ public abstract class AbstractValueAdaptingCache implements Cache {
|
||||
*/
|
||||
@Nullable
|
||||
protected Object fromStoreValue(@Nullable Object storeValue) {
|
||||
if (this.allowNullValues && storeValue == NullValue.INSTANCE) {
|
||||
if (this.allowNullValues && storeValue instanceof NullValue) {
|
||||
return null;
|
||||
}
|
||||
return storeValue;
|
||||
|
||||
Reference in New Issue
Block a user