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

NPE at JDTTreeBuilder:415 #671

Closed
tdurieux opened this issue May 23, 2016 · 2 comments
Closed

NPE at JDTTreeBuilder:415 #671

tdurieux opened this issue May 23, 2016 · 2 comments

Comments

@tdurieux
Copy link
Collaborator

tdurieux commented May 23, 2016

Last week I encounter a NPE when I spoon Closure Compiler at JDTTreeBuilder:415.
Because I some case context.compilationunitdeclaration.imports is null.
I fix the problem by putting the if at JDTTreeBuilder:2232 in the else of the previous if.
@GerardPaligot Do you remember why it is not currently the case?

I did not succeed to reproduce the NPE in a test.

@GerardPaligot
Copy link
Contributor

GerardPaligot commented May 23, 2016

@tdurieux Linked with this PR #633? :)

@tdurieux
Copy link
Collaborator Author

tdurieux commented May 23, 2016

I suppose :)

Do you have an answer to this question:

@GerardPaligot Do you remember why it is not currently the case?

But #633 is not a valid fix in my case because this fix will put null in the type of my CtParameter.

This was referenced May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants