Skip to content

Conversation

@laurent22
Copy link
Contributor

Under some rare conditions, Vorpal can produce an invalid persisted history which, when loaded, would result in an uncaught exception that crashes the caller. To prevent this, the history is reset when invalid JSON is loaded.

Ideally whatever is causing the invalid JSON to be generated should also be fixed, but I couldn't replicate this. In my case, the JSON was fine except that there was an extra ] at the end - so it would look like ["cmd1","cmd2","cmd3"]].

Under some rare conditions, Vorpal can produce an invalid persisted history which, when loaded, would result in an uncaught exception that crashes the caller. To prevent this, the history is reset when invalid JSON is loaded.
@milesj
Copy link
Contributor

milesj commented Jul 1, 2017

Cool, thanks!

@milesj milesj merged commit 643a5fe into dthree:master Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants