Skip to content

Commit 9eb7c43

Browse files
committed
Fix emptiness check in MappingRedisConverter.
Closes #2446
1 parent 66d44b1 commit 9eb7c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ protected Object readProperty(String path, RedisData source, RedisPersistentProp
322322
return null;
323323
}
324324

325-
if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path.isEmpty())) {
325+
if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path)) {
326326
return sourceBytes != null ? fromBytes(sourceBytes, typeInformation.getType()) : source.getId();
327327
}
328328

0 commit comments

Comments
 (0)