Skip to content

Cannot invoke "java.lang.Class.getName()" because the return value of "java.lang.Class.getSuperclass()" is null #1945

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

Closed
torsten-sauer opened this issue Nov 17, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@torsten-sauer
Copy link

With the integration of #1835 and the release of 1..6.12 there is a problem at the following line:

if ("java.lang.Record".equals(paramClass.getSuperclass().getName())) {

Error: Cannot invoke "java.lang.Class.getName()" because the return value of "java.lang.Class.getSuperclass()" is null

Looks like there should be some guard that catches the situation when paramClass.getSuperclass() is null.

@uc4w6c
Copy link
Collaborator

uc4w6c commented Nov 18, 2022

Sorry.
I want to fix it, so could you tell me how to reproduce it?

@bnasslahsen
Copy link
Collaborator

fixed by #1922

@bnasslahsen bnasslahsen added the duplicate This issue or pull request already exists label Nov 19, 2022
@torsten-sauer
Copy link
Author

Thx 🙏

Didn't see the other issue 🙈🙉🙊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants