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

NullPointerException when trying to annotate the field of an innerclass declared inside a method #58

Open
reprogrammer opened this issue Apr 26, 2014 · 1 comment
Milestone

Comments

@reprogrammer
Copy link
Owner

When I ran the tool on jolden-bh, it threw the following exception:

!MESSAGE An internal error occurred during: "Computing the effect of: Change return type of nextElement to @Nullable Object".
!STACK 0
java.lang.NullPointerException
    at checker.framework.quickfixes.variabledeclarationfixer.VariableDeclarationFixer.getProposal(VariableDeclarationFixer.java:74)
    at checker.framework.quickfixes.FixerDescriptorApplier.apply(FixerDescriptorApplier.java:28)
    at checker.framework.change.propagator.ShadowProject.updateToPrimaryProjectWithChanges(ShadowProject.java:89)
    at checker.framework.errorcentric.view.views.ChangeComputationJob.run(ChangeComputationJob.java:44)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

checker.framework.quickfixes.FixerDescriptorApplier.apply().proposal = Change type of Lbh/Body$4373$Enumerate;.current)Lbh/Body; to @Initialized @Nullable Body

@reprogrammer reprogrammer added this to the Next milestone Apr 26, 2014
@reprogrammer
Copy link
Owner Author

A workaround is to change jolden-bh not to declare innerclasses inside methods. After all, declaring inner classes inside methods is a rare practice. I changed jodlen-bh and ensured that the workaround works.

@reprogrammer reprogrammer modified the milestones: Later, Next Apr 26, 2014
@amchiclet amchiclet modified the milestones: Next, 2014-11-01 Nov 1, 2014
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