Skip to content

NPE when counting keys while invoking findBy(Pageable) [DATAREDIS-551] #1101

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATAREDIS-551 and commented

When invoking a derived query without criteria but with Pageable

Page<Person> findBy(Pageable page);

then a NullPointerException occurs:

Caused by: java.lang.NullPointerException
	at org.springframework.data.redis.core.RedisQueryEngine$2.doInRedis(RedisQueryEngine.java:169)
	at org.springframework.data.redis.core.RedisQueryEngine$2.doInRedis(RedisQueryEngine.java:163)
	at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:207)
	at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:169)
	at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:157)

Affects: 1.7.2 (Hopper SR2), 1.8 M1 (Ingalls)

Referenced from: pull request #220

Backported to: 1.7.3 (Hopper SR3)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions