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

EntityModel exception of ArrayIndexOUtOfBounds for polymorphic types with generics #2197

Closed
daniel-exceed opened this issue Jan 8, 2023 · 1 comment
Labels
Milestone

Comments

@daniel-exceed
Copy link
Contributor

in parameterized types building of entity model there can be an exception of IndexOutOfBounds due to not limiting the peek index while looping on it.

To Reproduce
https://github.com/daniel-exceed/entity-model-builder-index-out-of-bounds

Expected behavior
polymorphic types with generics are mapped correctly

  • Server Version: 6
  • Driver Version:4,7,2
  • Morphia Version:2.3.0

I have created a pull request to fix this:
#2170

@evanchooly
Copy link
Member

PR merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants