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

Allow non primitive null values while getting a proxyInstance #36

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tanmay-db
Copy link
Contributor

@tanmay-db tanmay-db commented Jan 24, 2025

Changes

In the ProxyDBUtils implementation, when an argument is boxed type and set to null, there is an issue where we directly reference the underlying class for that argument. eg: arg is null and we do arg.getClass with any null checks.

We add a case for this i.e. If a parameter is non-primitive but null then it should be allowed and we need to check for this before doing any operation on the said argument.

Also refactored code and comments for better readability.

Tests

Unit tests

@tanmay-db tanmay-db requested review from rauchy and mgyucht January 24, 2025 18:00
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.

1 participant