Crashes after having used the Sleep Timer on Android
When I went to bed yesterday I started an album in VLC 1.4.0 on my OnePlus One phone running CyanogenMod 12.1-20150518. I have downloaded VLC from F-Droid https://f-droid.org/repository/browse/?fdfilter=vlc&fdid=org.videolan.vlc. Then I started the Sleep Timer. That worked fine, but when I switched album a few minutes later the Sleep Timer modal window popped up by itself; closing the modal window then crashed the app. This scenario has happened several times now.
Sadly I haven't been able to figure out how to reproduce the crash though.
Here's the crash log:
--------- beginning of crash
05-22 01:47:19.106 E/AndroidRuntime( 6953): FATAL EXCEPTION: main
05-22 01:47:19.106 E/AndroidRuntime( 6953): Process: org.videolan.vlc, PID: 6953
05-22 01:47:19.106 E/AndroidRuntime( 6953): java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView org.videolan.vlc.gui.dialogs.AdvOptionsDialog.mSleepCancel' on a null object reference
05-22 01:47:19.106 E/AndroidRuntime( 6953): at org.videolan.vlc.gui.dialogs.AdvOptionsDialog.access$500(AdvOptionsDialog.java:67)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at org.videolan.vlc.gui.dialogs.AdvOptionsDialog$AdvOptionsDialogHandler.handleMessage(AdvOptionsDialog.java:347)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at android.os.Handler.dispatchMessage(Handler.java:102)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at android.os.Looper.loop(Looper.java:135)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at android.app.ActivityThread.main(ActivityThread.java:5293)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at java.lang.reflect.Method.invoke(Native Method)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at java.lang.reflect.Method.invoke(Method.java:372)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at Android.MODEL(A0001)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at Android.VERSION(5.1.1)
05-22 01:47:19.106 E/AndroidRuntime( 6953): at Android.FINGERPRINT(oneplus/bacon/A0001:5.0.2/LRX22G/YNG1TAS0YL:user/release-keys)
--------- beginning of main
05-22 08:43:54.464 D/AndroidRuntime( 6580): Shutting down VM
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView org.videolan.vlc.gui.dialogs.AdvOptionsDialog.mSleepCancel' on a null object reference
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at org.videolan.vlc.gui.dialogs.AdvOptionsDialog.access$500(AdvOptionsDialog.java:67)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at org.videolan.vlc.gui.dialogs.AdvOptionsDialog$AdvOptionsDialogHandler.handleMessage(AdvOptionsDialog.java:347)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at android.os.Handler.dispatchMessage(Handler.java:102)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at android.os.Looper.loop(Looper.java:135)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at android.app.ActivityThread.main(ActivityThread.java:5293)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at java.lang.reflect.Method.invoke(Native Method)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at java.lang.reflect.Method.invoke(Method.java:372)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at Android.MODEL(A0001)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at Android.VERSION(5.1.1)
05-22 08:43:54.466 E/VLC/VlcCrashHandler( 6580): at Android.FINGERPRINT(oneplus/bacon/A0001:5.0.2/LRX22G/YNG1TAS0YL:user/release-keys
)
As you can see, it crashed at 1:47 AM when I was in bed. Also in the same way at 8:43 AM when I started a podcast in VLC.