-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
NullPointerException with DoubleLiteral #755
Comments
msteinbeck
pushed a commit
to msteinbeck/spoon
that referenced
this issue
Jul 22, 2016
In some cases (an example is given in INRIA#755) Literal#constant may be `null` and, thus, causes a NullPointerException when calling `localDeclaration.initialization.traverse(this, scope);`. This patch fixes the issue by resolving Literal#constant if required.
A potential fix is given in #758. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I get a
NullPointerException
when creating a spoon model for the following code:The model is created as follows:
(with
projectPath
being the path to theDoubleLiteralBug.java
file)I noticed that the error can be removed by either replacing
UknownClass
with a class available in classpath, or by movingdouble d = 1d;
out of theforEach
lambda.The text was updated successfully, but these errors were encountered: