Diary app crashes when opening .ics files

in #utopian-io7 years ago (edited)

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

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: ..



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hello @onos, this can not be considered as a bug because the diary originally does not support this type of extension.

Please do well to do some findings before reporting any other issue. They are many things to consider before regarding anything as bug.

Thank you.



Chat with us on Discord.Need help? Write a ticket on https://support.utopian.io.

[utopian-moderator]

Am sorry but it does when I opened from another file location 20180425_154227.gif