Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

InsertAllObjects Throws Null Exception

Open donniefitz2 opened this issue 8 years ago • 2 comments

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?

donniefitz2 avatar Jun 16 '16 19:06 donniefitz2

Do you have a reproducible sample that I can just open?

flagbug avatar Jun 16 '16 21:06 flagbug

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.

donniefitz2 avatar Jun 16 '16 21:06 donniefitz2