powerauth-server icon indicating copy to clipboard operation
powerauth-server copied to clipboard

Null pointer exception for ApplicationEntity.getRid()

Open romanstrobl opened this issue 1 year ago • 2 comments

Log:

java.lang.NullPointerException: Cannot invoke "io.getlime.security.powerauth.app.server.database.model.entity.ApplicationEntity.getRid()" because "this.application" is null
	at io.getlime.security.powerauth.app.server.database.model.entity.MasterKeyPairEntity.toString(MasterKeyPairEntity.java:237) ~[classes/:1.5.0-SNAPSHOT]

romanstrobl avatar Jun 01 '23 12:06 romanstrobl

This issue occurs when root logging level is set to TRACE.

romanstrobl avatar Jun 01 '23 12:06 romanstrobl

It is strange. I see that NPE is possible ", application=" + application.getRid() but application is nullable = false, foreign key exists and when a new MasterKeyPairEntity is created, the application is set. It could be handy to know the specific use-case.

banterCZ avatar Jul 31 '23 09:07 banterCZ