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

Ensure that multiple BeatmapSetInfo with same OnlineID don't cause import failures #19121

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

peppy
Copy link
Member

@peppy peppy commented Jul 14, 2022

This really shouldn't happen but I managed to make it happen while working on re-downloading already present beatmaps. Realm doesn't provide any kind of unique restrictions, so I figure this is a better way of handling the edge case where things are in a bad state.

Until this comes up again in a way that matters, let's just fix the LINQ crash from SingleOrDefault.

…port failures

Really this shouldn't happen but I managed to make it happen. Until this
comes up again in a way that matters, let's just fix the LINQ crash from
`SingleOrDefault`.

I've tested this to work as expected in the broken scenario.
@peppy peppy added the realm deals with local realm database label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realm deals with local realm database size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants