Akavache
Akavache copied to clipboard
InsertAllObjects Throws Null Exception
I have hit a strange issue with Akavache. If I call InsertAllObjects with a valid Dictionary, something within the Akavache library throws an exception, but the exception itself is null. Below is an example of what I'm doing:
public async Task SaveLabs(Dictionary<string, Lab> labs)
{
try
{
await BlobCache.LocalMachine.InsertAllObjects(labs);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex); //this exception is null always
}
}
The exception thrown is null, which is really odd and makes it impossible to know what's going wrong within the method call. Is this a bug, or am I missing something?
Do you have a reproducible sample that I can just open?
I can't really post a full sample. It's a fairly large app involving sensitive data. But, the dictionary is just several string properties. Also, I'm using this in a Xamarin.Forms app and running this on iOS 9.3.