notes-android
notes-android copied to clipboard
Crash while doing a seach inside a note: `NullPointerException: Attempt to invoke interface method 'void com.nextcloud.android.sso.api.NextcloudAPI$ApiConnectedListener.onConnected()'`
This issue respects the following points:
- [x] I have read the FAQ
- [x] I have searched for existing issues
- [x] The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
App crash while doing a seach inside a note.
Steps to reproduce:
- open the app
- click on a note
- use the magnifying glass to search
- type text
- the crash occurs Seems to be occuring randomly and when the first few letters of a word that is in the note multiple times is typed. And for bigger notes it seems, like 60 lines and 10000 characters
Expected behavior
No crash when doing a search for text inside a note
Notes Android version
4.3.1
Notes server version
4.11.0
Nextcloud Android version
3.31.1
Nextcloud version
31.0.2
Device
Samsung Galaxy A53 5G
Android Version
14
App Store
- [x] Google Play Store
- [ ] F-Droid
- [ ] Huawei App Gallery
Stacktrace
App Version: 4.3.1
App Version Code: 40030192
App Flavor: play
Files App Version Code: 30310090 (PROD)
OS Version: 5.10.223-android12-9-28577532-abA536BXXSDEYB9(A536BXXSDEYB9)
OS API Level: 34
Device: a53x
Manufacturer: samsung
Model (and Product): SM-A536B (a53xnaeea)
java.lang.NullPointerException: Attempt to invoke interface method 'void com.nextcloud.android.sso.api.NextcloudAPI$ApiConnectedListener.onConnected()' on a null object reference
at com.nextcloud.android.sso.api.AidlNetworkRequest$1.onServiceConnected(AidlNetworkRequest.java:69)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2348)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2385)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Just to add another device installed from f-droid
App Version: 4.3.1
App Version Code: 40030190
App Flavor: fdroid
Files App Version Code: 30310190 (PROD)
---
OS Version: 6.6.30-android15-8-g54dcbfbef792-ab12368803-4k(RedMagicOS10.0.10MR1_NX789J_EEA)
OS API Level: 35
Device: NX789J
Manufacturer: nubia
Model (and Product): NX789J (NX789J-EEA)
---
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getString(int)' on a null object reference
at com.nextcloud.android.sso.api.AidlNetworkRequest.waitForApi(AidlNetworkRequest.java:153)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performAidlNetworkRequestV2(AidlNetworkRequest.java:209)
at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:171)
at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:159)
at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$0(NextcloudAPI.java:97)
at com.nextcloud.android.sso.api.NextcloudAPI.$r8$lambda$af7W9mq2B0ZrhVJwZd-ibFp8T3Y(Unknown Source:0)
at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda1.subscribe(D8$$SyntheticClass:0)
at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
at io.reactivex.Observable.subscribe(Observable.java:12284)
at io.reactivex.internal.operators.observable.ObservableSingleMaybe.subscribeActual(ObservableSingleMaybe.java:31)
at io.reactivex.Maybe.subscribe(Maybe.java:4290)
at io.reactivex.Maybe.blockingGet(Maybe.java:2320)
at io.reactivex.Observable.blockingSingle(Observable.java:5381)
at it.niedermann.owncloud.notes.persistence.CapabilitiesClient.getCapabilities(CapabilitiesClient.java:38)
at it.niedermann.owncloud.notes.main.MainViewModel.lambda$synchronizeCapabilities$13(MainViewModel.java:407)
at it.niedermann.owncloud.notes.main.MainViewModel.$r8$lambda$5Xkfm2L_24X4zhF0t4NRWxr_iHA(Unknown Source:0)
at it.niedermann.owncloud.notes.main.MainViewModel$$ExternalSyntheticLambda5.run(D8$$SyntheticClass:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)