Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer exception for ApplicationEntity.getRid() #920

Open
romanstrobl opened this issue Jun 1, 2023 · 2 comments
Open

Null pointer exception for ApplicationEntity.getRid() #920

romanstrobl opened this issue Jun 1, 2023 · 2 comments
Assignees
Labels

Comments

@romanstrobl
Copy link
Member

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 romanstrobl added the bug label Jun 1, 2023
@romanstrobl romanstrobl self-assigned this Jun 1, 2023
@romanstrobl
Copy link
Member Author

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

@banterCZ
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants