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 in the 'insertCommentInAST' method for an empty switch statement. #3191

Merged
merged 2 commits into from
Dec 15, 2019

Conversation

BuzzMS
Copy link
Contributor

@BuzzMS BuzzMS commented Dec 12, 2019

Hi )

I offer the pull request, which fixes NullPointerException in JDTCommentBuilder.java.
It occurred in the case, when spoon gathered comments in an empty switch statement.

@monperrus
Copy link
Collaborator

That's really nice, thank you. LGTM.

@monperrus monperrus merged commit 9207950 into INRIA:master Dec 15, 2019
@monperrus
Copy link
Collaborator

Thanks a lot for the well-tested bug fix!

MartinWitt pushed a commit to MartinWitt/spoon that referenced this pull request Feb 11, 2020
@monperrus monperrus mentioned this pull request Mar 20, 2020
@BuzzMS BuzzMS deleted the fixNPE_jdtcommentbuilder branch October 12, 2020 11:21
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