Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@shana
Copy link
Contributor

@shana shana commented Feb 1, 2018

If the database has json that we're not expecting in index entries, avakache throws a json deserialization exception, but I can't seem to catch it anywhere for some reason, which means it ends up returning a default CacheIndex instance with all empty fields, which meeeeans later on we crash trying to save it. So, make sure we always return a valid index.

Fixes #1319

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

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

image

I can confirm that it now creates a new index and the clone dialog is able to complete loading without crashing.

Looks good to me. 👍

@shana shana merged commit 2199169 into master Feb 1, 2018
@shana shana deleted the fixes/1319-crash-when-reading-old-data branch February 1, 2018 16:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants