Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix a possible crash

ammarahm-edba567d37343c
diff --git a/apps/mobile/AppRootEvents.js b/apps/mobile/AppRootEvents.js
index eb9206031..19bb6c132 100644
--- a/apps/mobile/AppRootEvents.js
+++ b/apps/mobile/AppRootEvents.js
@@ -50,7 +50,7 @@ let subsriptionErrorListener;
let isUserReady = false;
async function storeAppState() {
if (editing.currentlyEditing) {
- if (getNote().locked) return;
+ if (getNote()?.locked) return;
let state = JSON.stringify({
editing: editing.currentlyEditing,
note: getNote(),