AsteroidOS / AsteroidOSSync

Android application to synchronize a phone with a watch running asteroid-btsyncd.
GNU General Public License v3.0
100 stars 37 forks source link

APP crash with Version 0.29 #209

Closed Charger93 closed 11 months ago

Charger93 commented 11 months ago

Hi, with the New Version 0.29 the APP crash ~30 seconds after the app start.

The crash log:

time: 1695873542493 msg: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.session.MediaSessionManager.addOnActiveSessionsChangedListener(android.media.session.MediaSessionManager$OnActiveSessionsChangedListener, android.content.ComponentName)' on a null object reference stacktrace: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.session.MediaSessionManager.addOnActiveSessionsChangedListener(android.media.session.MediaSessionManager$OnActiveSessionsChangedListener, android.content.ComponentName)' on a null object reference at org.asteroidos.sync.connectivity.MediaService.lambda$sync$1$org-asteroidos-sync-connectivity-MediaService(MediaService.java:167) at org.asteroidos.sync.connectivity.MediaService$$ExternalSyntheticLambda1.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7936) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:854) GitHub

Device: OnePlus 8T ROM: crDroid 9.8 (rooted with microG) Kernel: TP and BluSpark ( makes no difference) Watch: catfish (AsteroidOS build version 20230506132308)

The version 0.28 runs completely fine.

If you need some more information, please ask and I try to help.