From 9eb7c432aa773bb1ca3a9941c7ddfd4fb21c588c Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 11 Nov 2022 10:33:31 +0100 Subject: [PATCH] Fix emptiness check in MappingRedisConverter. Closes #2446 --- .../data/redis/core/convert/MappingRedisConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java b/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java index d9f13496f..ab1329543 100644 --- a/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java +++ b/src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java @@ -322,7 +322,7 @@ public class MappingRedisConverter implements RedisConverter, InitializingBean { return null; } - if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path.isEmpty())) { + if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path)) { return sourceBytes != null ? fromBytes(sourceBytes, typeInformation.getType()) : source.getId(); }