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 in ModelCompiler related to generics #996

Open
artemana opened this issue Jun 19, 2023 · 0 comments
Open

NullPointerException in ModelCompiler related to generics #996

artemana opened this issue Jun 19, 2023 · 0 comments

Comments

@artemana
Copy link

The GenericsResolver.mapGenericVariablesToBase() may return null, but that code below does not handle it.

for (BeanModel descendant : descendants) {
// do not handle bean as tagged union if any descendant has "non-related" generic parameter
final List mappedGenericVariables = GenericsResolver.mapGenericVariablesToBase(descendant.getOrigin(), bean.getOrigin());
if (mappedGenericVariables.contains(null)) {
isTaggedUnion = false;
}
}

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

1 participant