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: Fix crash on null type binding in nested type during search #3961

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented May 26, 2021

Fix #3950
Fix #3572

This PR fixes a crash that occurs when Spoon is forced to search for type bindings, and there's a duplicated type with nested types that are also duplicated. It's a very fringe thing that only occurs when running with setIgnoreDuplicateDeclarations(true).

@slarse slarse changed the title wip: fix: Fix crash on null type binding in nested type during search review: fix: Fix crash on null type binding in nested type during search May 26, 2021
@monperrus monperrus changed the title review: fix: Fix crash on null type binding in nested type during search fix: Fix crash on null type binding in nested type during search May 31, 2021
@monperrus monperrus merged commit c27ff84 into INRIA:master May 31, 2021
@monperrus
Copy link
Collaborator

Thanks for the fix @slarse

@slarse slarse deleted the issue/3950/3572-fix-crash-on-null-type-binding-in-nested-type branch May 31, 2021 09:11
@slarse
Copy link
Collaborator Author

slarse commented May 31, 2021

Note that there's still a bug here (#3708). With this enhanced test case I hope to be able to actually show some symptoms of that bug, which I previously failed to do.

@monperrus monperrus mentioned this pull request Aug 19, 2021
woutersmeenk pushed a commit to woutersmeenk/spoon that referenced this pull request Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants