Skip to content

Commit ca4e5cd

Browse files
committed
Fix emptiness check in MappingRedisConverter.
Closes #2446
1 parent e5a1011 commit ca4e5cd

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
@@ -317,7 +317,7 @@ protected Object readProperty(String path, RedisData source, RedisPersistentProp
317317
return null;
318318
}
319319

320-
if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path.isEmpty())) {
320+
if (persistentProperty.isIdProperty() && ObjectUtils.isEmpty(path)) {
321321
return sourceBytes != null ? fromBytes(sourceBytes, typeInformation.getType()) : source.getId();
322322
}
323323

0 commit comments

Comments
 (0)