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

Avoid NPE in DefaultTransientPropertyResolverService #223

Merged

Conversation

tmarmilic
Copy link
Collaborator

Basic information

  • nrich version: 2.7.0
  • Module: nrich-webmvc

Additional information

Description

Summary

Existing code caused NPE when type did not extend Object class.
This is the case with interfaces, such as java.util.Map.

Details

Existing code caused NPE when type did not extend Object class.
This is the case with interfaces, such as java.util.Map.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the project's CONTRIBUTING document
  • I have checked my code with the project's static analysis tooling
  • I have formatted my code with the project's IDEA code-style configuration
  • I have checked my code for misspellings
  • I have organized my changes in easy-to-follow commits
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests pass.

Existing code caused NPE when type did not extend Object class.
This is the case with interfaces, such as java.util.Map.
@agrancaric agrancaric merged commit e2dd23a into master Oct 7, 2024
6 checks passed
@agrancaric agrancaric deleted the bugfix_resolveTransientPropertyListNullPointerException branch October 7, 2024 10:15
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.

3 participants