Diary app crashes when opening .ics files
utopian-io·@onos·
0.000 HBDDiary app crashes when opening .ics files
#### Expected behavior expected when i open the `.ics` file i will get all details of the file seems the prompt shows it can be done with the diary app #### Actual behavior after clicking on the file, the diary app crashes in the process of opening the file. #### How to reproduce - download a `,ics` in your file manager - download diary app - locate the file in your file manager - tap to open it and select using diary app Crash occurs * Mobile: Infinix note 4 * Operating system: android 7.0 * version: 1.27 #### Recording Of The Bug https://www.youtube.com/watch?v=3i4MYL5FwAk #### Logcat `04-22 21:57:01.114 12062 12062 E AndroidRuntime: FATAL EXCEPTION: main 04-22 21:57:01.114 12062 12062 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 12062 04-22 21:57:01.114 12062 12062 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.billthefarmer.diary/org.billthefarmer.diary.Editor}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-22 21:57:01.114 12062 12062 E AndroidRuntime: ... 9 more 04-22 21:57:26.652 12763 12763 E AndroidRuntime: FATAL EXCEPTION: main 04-22 21:57:26.652 12763 12763 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 12763 04-22 21:57:26.652 12763 12763 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.billthefarmer.diary/org.billthefarmer.diary.Editor}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-22 21:57:26.652 12763 12763 E AndroidRuntime: ... 9 more 04-22 21:57:34.720 12790 12790 E AndroidRuntime: FATAL EXCEPTION: main 04-22 21:57:34.720 12790 12790 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 12790 04-22 21:57:34.720 12790 12790 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.billthefarmer.diary/org.billthefarmer.diary.Editor}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-22 21:57:34.720 12790 12790 E AndroidRuntime: ..` <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@onos/diary-app-crashes-when-opening-ics-files">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
👍 saimer, tuanis, warlover, sbi3, algo.coder, marketstack, polbot, libertyteeth, dubem-eu, evdokhimy, eromose-le, onos,