Skip to content

Derived query existsByToken throws exception when entity doesn't exists [DATAJDBC-529] #749

Closed
@spring-projects-issues

Description

@spring-projects-issues

hwolf opened DATAJDBC-529 and commented

The derived query existsByToken(token: String) throws an exception when no entity exists with the given token 

org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type for: public abstract boolean xx.DeviceRepository.existsByToken(java.lang.String)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:226)
        at com.sun.proxy.$Proxy71.existsByToken(Unknown Source)
        at xx.DeviceRepositoryTest.existsByToken(DeviceRepositoryTest.java:24)

I expect, that existsByToken() returns false in such cases.

 


Affects: 2.0 RC2 (Neumann)

Reference URL: https://gitlab.com/hwolf/xx

Referenced from: pull request #212

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions