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

RefreshCollectionsWorker causes app to crash when the service is invalid #743

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Apr 22, 2024

Purpose

This fixes an app crash, caused by previously thrown IllegealArgumentException on invalid service IDs.

Short description

Gracefully handle refresh requests with invalid service IDs by not running the RefreshCollectionsWorker at all, instead of throwing an IllegalArgumentException which caused the crash.

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

@sunkup sunkup added the bug Something isn't working label Apr 22, 2024
@sunkup sunkup linked an issue Apr 22, 2024 that may be closed by this pull request
@sunkup sunkup marked this pull request as ready for review April 22, 2024 12:05
@sunkup sunkup requested a review from rfc2822 April 22, 2024 12:05
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

Looks good!

@rfc2822 rfc2822 merged commit 3fbffc4 into main-ose Apr 22, 2024
10 checks passed
@rfc2822 rfc2822 deleted the 738-refreshcollectionworker-causes-app-to-crash-when-the-service-is-invalid branch April 22, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RefreshCollectionWorker causes app to crash when the service is invalid
2 participants