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

Fix NullPointerException resulting from variable accesses in ctors. #1098

Merged

Conversation

msteinbeck
Copy link
Contributor

createVariableAccessNoClasspath throws a NullPointerException if a
variable access is resolved for parameters in constructors as the parent
of constructor node is not available at this point.

`createVariableAccessNoClasspath` throws a NullPointerException if a
variable access is resolved for parameters in constructors as the parent
of constructor node is not available at this point.
@msteinbeck
Copy link
Contributor Author

Do you need tests for this PR?

@surli
Copy link
Collaborator

surli commented Jan 10, 2017

Thanks for the PR.

Do you need tests for this PR?

If you can do it quickly it's always better, at least to avoid regression.

@msteinbeck
Copy link
Contributor Author

Tests will be added in a minute.

@msteinbeck
Copy link
Contributor Author

Is this test suitable?

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

Successfully merging this pull request may close these issues.

2 participants