Fix emptiness check in MappingRedisConverter.

Closes #2446
This commit is contained in:
Mark Paluch
2022-11-11 10:33:31 +01:00
parent e5a1011ab7
commit ca4e5cd5d2

View File

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