Fix emptiness check in MappingRedisConverter.

Closes #2446
This commit is contained in:
Mark Paluch
2022-11-11 10:33:31 +01:00
parent 66d44b1671
commit 9eb7c432aa

View File

@@ -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();
}