[Xperia SP Q&A, Help & Troubleshooting] Ramonster1979:
Calendar keeps crashing

Hi,

First of all great and smooth rom :)

I did a clean install of CM14.1 from 25-11. After that Agenda keeps crashing. Now tried the one from 12-12 (not clean, but wipe of Dalvik and cache), but same result.

It's just the stock calendar that doesn't work, Google Calendar works, don't know if the stock one was working on CM13 in my case.

Any idea what's going on? Seems to come from Calendar app:

12-13 22:00:21.174 I/ActivityManager( 703): Start proc 7369:com.android.providers.calendar/u0a4 for content provider com.android.providers.calendar/.CalendarProvider2
12-13 22:00:21.208 I/art ( 7344): Background sticky concurrent mark sweep GC freed 20836(1079KB) AllocSpace objects, 4(80KB) LOS objects, 60% free, 3MB/8MB, paused 14.222ms total 73.096ms
12-13 22:00:21.290 D/ExtensionsFactory( 7344): AnalyticsLogger not found in properties file.
12-13 22:00:21.354 I/art ( 7369): Starting a blocking GC AddRemoveAppImageSpace
12-13 22:00:21.355 W/System ( 7369): ClassLoader referenced unknown path: /system/priv-app/CalendarProvider/lib/arm
12-13 22:00:21.433 I/CalendarProvider2( 7369): Created com.android.providers.calendar.CalendarAlarmManager@89caf9d(com.android.providers.calendar.CalendarProvider2@8a6cc12)
12-13 22:00:21.954 I/Adreno-EGL( 7344): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
12-13 22:00:21.958 I/OpenGLRenderer( 7344): Initialized EGL, version 1.4
12-13 22:00:21.958 D/OpenGLRenderer( 7344): Swap behavior 1
12-13 22:00:22.068 D/AndroidRuntime( 7344): Shutting down VM
12-13 22:00:22.070 E/AndroidRuntime( 7344): FATAL EXCEPTION: main
12-13 22:00:22.070 E/AndroidRuntime( 7344): Process: com.android.calendar, PID: 7344
12-13 22:00:22.070 E/AndroidRuntime( 7344): java.lang.NullPointerException: Attempt to get length of null array
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.calendar.ImportActivity.hasThingsToImport(ImportActivity.java:186)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.calendar.AllInOneActivity.onCreateOptionsMenu(AllInOneActivity.java:787)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at android.app.Activity.onCreatePanelMenu(Activity.java:3142)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.internal.policy.PhoneWindow.preparePanel(PhoneWindow.java:617)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.internal.policy.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:1003)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.internal.policy.PhoneWindow$1.run(PhoneWindow.java:262)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at android.os.Handler.handleCallback(Handler.java:751)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at android.os.Handler.dispatchMessage(Handler.java:95)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at android.os.Looper.loop(Looper.java:154)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at android.app.ActivityThread.main(ActivityThread.java:6126)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at java.lang.reflect.Method.invoke(Native Method)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
12-13 22:00:22.070 E/AndroidRuntime( 7344):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
12-13 22:00:22.078 W/ActivityManager( 703): Force finishing activity com.android.calendar/.AllInOneActivity