Skip to content

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

Closed
@torsten-sauer

Description

@torsten-sauer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions