-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
element.toString() crashes with a NP in DefaultJavaPrettyPrinter.visitCtTypeReference() #1099
Comments
On 22.11.16 Pavel V. changed if (!context.ignoreEnclosingClass && !ref.isLocalType() && !ref.getDeclaringType().isAnonymous()) {
boolean ign = context.ignoreGenerics;
if (!withGenerics) {
context.ignoreGenerics = true;
}
scan(ref.getDeclaringType());
if (!withGenerics) {
context.ignoreGenerics = ign;
}
printer.write(".");
} to
A Nullcheck would fix this issue for us |
|
It should be emphasized that we are using noclasspath mode which, by its nature, may produce unresolvable references. Is this a problem for the DefaultPrettyPrinter? |
Thanks for info. Yes it might be the cause of that problem. It would be helpful if you provide details about |
* reproduce ElasticSearch access path problem #1099 * fix access path problem * fix other tests * Add one more assert on tests to check behaviour when overriding inner class. Replace some assertTrue by assertEquals to help debug test.
Should be fixed by #1102. Thanks @pvojtechovsky! |
When analyzing elasticsearch we get a NP when calling element.toString().
As this has something to do with type references, I can't give you a concrete source file with this problem, but rather a part of the project as tar archive. (
elasticsearch.tar.gz
)
The text was updated successfully, but these errors were encountered: