powerauth-server
powerauth-server copied to clipboard
Null pointer exception for ApplicationEntity.getRid()
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]
This issue occurs when root logging level is set to TRACE
.
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.