Skip to content

NullPointerException on pretty-printing when nested class is used in an instanceof statement #77

@slarse

Description

@slarse

I think this has to do with the fact that the frankenstein's monster of a merge tree doesn't have all references correctly set. When an instanceof operator is found, the DefaultJavaPrettyPrinter tries to force printing of wildcards. That causes a crash when looking up the nested class' supertype.

I haven't been able to pinpoint the cause of this behavior, however, and have been unable to produce a minimal example that recreates the behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions