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

Fix for #4695: library.getContents() returns empty JSON sometimes #4696

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

Azhrei
Copy link
Member

@Azhrei Azhrei commented Feb 15, 2024

fixes #4695

Description of the Change

Added a call to get() for the CompletableFuture to ensure that the returned JSON object is resolved prior to it being used.

Possible Drawbacks

I don't have much experience with CompletableFuture, so it may be that listLibraryContents() should instead return a CompletableFuture and the caller should then invoke get() to resolve it before use.

Release Notes

Corrects library.getContents() so that return values are consistently populated with data


This change is Reviewable

@Azhrei Azhrei marked this pull request as ready for review February 15, 2024 02:48
@cwisniew cwisniew added the bug label Feb 15, 2024
@cwisniew cwisniew added this pull request to the merge queue Feb 15, 2024
Merged via the queue into RPTools:develop with commit f87db04 Feb 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: library.getContents() sometimes returns an empty JSON array
2 participants