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

Replace Empty String with Null for Version Handling in Dataset Caching #114

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

elmiomar
Copy link
Contributor

This PR modifies the logic for handling dataset version in the rpaCachingService.cacheAndGenerateRandomId() method. Previously, an empty string ("") was passed when no version was available, which caused an error in the downstream logic. To ensure that the latest version is selected when no version is provided, null is now passed instead of an empty string.

Changes:

  • Replaced "" with null in rpaCachingService.cacheAndGenerateRandomId()

Testing:

  • Updated corresponding unit tests

Copy link
Collaborator

@RayPlante RayPlante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at RPACachingService, line 82, which raises a NullPointerException when version is null. Please review the rest of this implementation to make sure it can handle a null version.

Copy link
Collaborator

@RayPlante RayPlante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked; confirmed fix

@RayPlante RayPlante merged commit 7824d70 into integration Oct 25, 2024
2 checks passed
@RayPlante RayPlante deleted the fix/empty-version-string branch October 25, 2024 03:34
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.

2 participants