Fixing a crash "Attempt to perform an operation on a closed database"

Heads up, Code Owner of CouchDB Lite iOS!

Please review this PR at your earliest convenience, thanks a lot!

Bug: “Attempt to perform an operation on a closed database”

Reason: self.mustBeOpen may raise an exception but the code cannot capture it without this PR, so usually when the error happen, the app will crash

Fix: Call self.mustBeOpen with an error parameter.

1 Like

I have added the comment and closed it(opened a Jira ticket to track the improvement request), sorry for the delay in looking at the PR.

Thank you Jay, may I ask the release plan for this issue?

We could only say, next major release, timeline not yet planned. You can track the issue.