[Bug]: After GetInstance, calling All<T>().FirstOrDefault(); throws System.ArgumentOutOfRangeException #3092
Labels
More-information-needed
More information is needed to progress. The issue will close automatically in 2 weeks.
O-Community
What happened?
After I use
GetInstance
, I try to getAll<Folder>().FirstOrDefault(f => f.Name == "Root Folder");
and it throws aSystem.ArgumentOutOfRangeException
. If I re-run the app it works, so I know it's because the data isn't synced, but if it's not synced yet then it should just return nothing, not throw an exception?This and 2 other issues I logged tonight can all be easily reproduced in my Xamarin app once I give you access to the GH repo.
Repro steps
FolderClientService.GetRootFolder
Result: exception is thrown
Version
10.18.0
What SDK flavour are you using?
MongoDB Atlas (i.e. Sync, auth, functions)
What type of application is this?
Xamarin
Client OS and version
Xamarin.iOS running iOS 16
Code snippets
Search
GetRootFolder
in the solution.Stacktrace of the exception/crash you're getting
Relevant log output
No response
The text was updated successfully, but these errors were encountered: