Crash code after accidentally deleting notes in Notes app: is it possible to retrieve the notes?
Hi, please help! I accidentally deleted over 40 notes. When I pressed undo, the app crashed and produced this crash code:
App Version: 3.7.1 App Version Code: 3007001 App Flavor: ACCOUNT_MANAGER
Files App Version Code: 403090004
OS Version: 4.19.304-perf-ge1a0ca27cdc8(eng.root.20250109.094204) OS API Level: 34 Device: FP4 Manufacturer: Fairphone Model (and Product): FP4 (FP4eea)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Calendar it.niedermann.owncloud.notes.persistence.entity.Note.getModified()' on a null object reference at it.niedermann.owncloud.notes.persistence.NotesRepository.addNoteAndSync(NotesRepository.java:431) at it.niedermann.owncloud.notes.main.MainViewModel.lambda$addNoteAndSync24it-niedermann-owncloud-notes-main-MainViewModel(MainViewModel.java:584) at it.niedermann.owncloud.notes.main.MainViewModelExternalSyntheticLambda22.apply(Unknown Source:6) at androidx.lifecycle.Transformations2.onChanged(Transformations.java:143) at androidx.lifecycle.MediatorLiveDataSource.onChanged(MediatorLiveData.java:155) at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133) at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151) at androidx.lifecycle.LiveData.setValue(LiveData.java:309) at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50) at androidx.lifecycle.Transformations3.onChanged(Transformations.java:188) at androidx.lifecycle.MediatorLiveDataSource.onChanged(MediatorLiveData.java:155) at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133) at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:146) at androidx.lifecycle.LiveDataObserverWrapper.activeStateChanged(LiveData.java:468) at androidx.lifecycle.LiveData.observeForever(LiveData.java:234) at androidx.lifecycle.MediatorLiveDataSource.plug(MediatorLiveData.java:144) at androidx.lifecycle.MediatorLiveData.onActive(MediatorLiveData.java:121) at androidx.lifecycle.LiveData.changeActiveCounter(LiveData.java:390) at androidx.lifecycle.LiveDataObserverWrapper.activeStateChanged(LiveData.java:466) at androidx.lifecycle.LiveData.observeForever(LiveData.java:234) at androidx.lifecycle.MediatorLiveDataSource.plug(MediatorLiveData.java:144) at androidx.lifecycle.MediatorLiveData.onActive(MediatorLiveData.java:121) at androidx.lifecycle.LiveData.changeActiveCounter(LiveData.java:390) at androidx.lifecycle.LiveDataObserverWrapper.activeStateChanged(LiveData.java:466) at androidx.lifecycle.LiveDataLifecycleBoundObserver.onStateChanged(LiveData.java:425) at androidx.lifecycle.LifecycleRegistryObserverWithState.dispatchEvent(LifecycleRegistry.java:360) at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:202) at androidx.lifecycle.LiveData.observe(LiveData.java:205) at it.niedermann.owncloud.notes.main.MultiSelectedActionModeCallback.lambdaonActionItemClicked2it-niedermann-owncloud-notes-main-MultiSelectedActionModeCallback(MultiSelectedActionModeCallback.java:119) at it.niedermann.owncloud.notes.main.MultiSelectedActionModeCallbackExternalSyntheticLambda7.onClick(Unknown Source:4) at com.google.android.material.snackbar.Snackbar.lambdasetAction0com-google-android-material-snackbar-Snackbar(Snackbar.java:347) at com.google.android.material.snackbar.SnackbarExternalSyntheticLambda0.onClick(Unknown Source:4) at android.view.View.performClick(View.java:7931) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1219) at android.view.View.performClickInternal(View.java:7908) at android.view.View.-NestmperformClickInternal(Unknown Source:0) at android.view.ViewPerformClick.run(View.java:30990) at android.os.Handler.handleCallback(Handler.java:959) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at android.app.ActivityThread.main(ActivityThread.java:8592) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInitMethodAndArgsCaller.run(RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
My understanding of this coding is below beginner. I'm using e OS because I've been wanting to move away from google products whenever possible. A Fairphone user for many years, I was excited to see there was an alternative when it was time to finally get a new phone last year. I got help from a kind user on the e community forum to figure out to post here on gitlab. They told me:
"you’d create a gitlab entry if there’s none yet for “getModified() on a null object reference”
java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Calendar it.niedermann.owncloud.notes.persistence.entity.Note.getModified()' on a null object reference
but I have difficulties reproducing it with newly created (then deleted, then undo-ed) notes"
I searched but did not see anything posted along these lines.
I was not logged in with a Murena ID account and did not have the notes on a cloud.
As you might guess, seriously, any and all help is appreciated.
Most importantly to me, is it possible to retrieve the notes?
Thanks so much!