**[Shivam Rohilla](https://jira.spring.io/secure/ViewProfile.jspa?name=rohillashivam)** opened **[DATAREDIS-911](https://jira.spring.io/browse/DATAREDIS-911?redirect=false)** and commented Spring data redis is not working for custom converter. in class **org.springframework.data.redis.core.convert.MappingRedisConverter** in **writeInternal** method in below code snippet :- **!StringUtils.hasText(path) && customConversions.getCustomWriteTarget(value.getClass()).equals(byte[].class))** it's returning the Optional object and when getClass() is called it returns Optional, so it's **comparing Optional class with bytes class**. This is crashing and converters are not working --- **Affects:** 2.1.3 (Lovelace SR3) 1 votes, 4 watchers