codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Recover from empty books database #755

Closed rivaldi8 closed 6 years ago

rivaldi8 commented 6 years ago

The fix implemented in c27f763 didn't solve the issue. It now fails because the books database is empty. This pull request will hopefully solve the problem, unless there's been real data loss.

Fixes http://crashes.to/s/d7c34870c8d

codinguser commented 6 years ago

Thanks @rivaldi8 The fix looks good and comprehensive to me. I hope I can eventually figure out at what point the issue is triggered in the first place which causes no book to be active.