theawless / EventLock

An Xposed module to show calendar events on the lockscreen.
http://repo.xposed.info/module/com.gobbledygook.theawless.eventlock
MIT License
13 stars 2 forks source link

Screen off intent crashes SystemUI #29

Open defvs opened 5 years ago

defvs commented 5 years ago

Locking the screen just straight up crash my SystemUI.

I am on a slightly modified 8.1 AOSP. My phone is a Chinese Umidigi One Max.

Running Magisk + Xposed.

Stack trace :


01-11 18:14:04.546 E/AndroidRuntime(1131): Process: com.android.systemui, PID: 1131
01-11 18:14:04.546 E/AndroidRuntime(1131): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.SCREEN_OFF flg=0x50200010 } in com.gobbledygook.theawless.eventlock.hooks.LockscreenHook$1@755dc81
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_53174(LoadedApk.java:1338)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.app.-$Lambda$aS31cHIhRx41653CMnd4gZqshIQ.$m$7(Unknown Source:4)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.app.-$Lambda$aS31cHIhRx41653CMnd4gZqshIQ.run(Unknown Source:39)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.os.Handler.handleCallback(Handler.java:790)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.os.Looper.loop(Looper.java:164)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.app.ActivityThread.main(ActivityThread.java:6523)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at java.lang.reflect.Method.invoke(Native Method)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
01-11 18:14:04.546 E/AndroidRuntime(1131): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.util.ArrayList.get(int)' on a null object reference
01-11 18:14:04.546 E/AndroidRuntime(1131):  at com.gobbledygook.theawless.eventlock.gismo.EventsGismo.scrollToEvent(EventsGismo.java:77)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at com.gobbledygook.theawless.eventlock.receivers.UpdateReceiver.onReceive(UpdateReceiver.java:43)
01-11 18:14:04.546 E/AndroidRuntime(1131):  at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$-android_app_LoadedApk$ReceiverDispatcher$Args_53174(LoadedApk.java:1328)
01-11 18:14:04.546 E/AndroidRuntime(1131):  ... 10 more```