Crash occurred when saved files are opened
Expected behavior
After saving file from diary app, expected whenever am to open them from my file manager they should open in diary app.
Actual behavior
After clicking on the saved files, a crash pop up displays
How to reproduce
- download diary app latest version here
- create an event by using go-to to date after tapping the three dots at the top right corner
- after writing your desired text or file, save it by clicking the tick button below
- go-to your file manager
- locate the diary app folder, saved as diary by default
- open it and locate the date number of your saved file in
.txtformat
Crash pop up
- mobile : Infinix note 4
- Operating system: android 7.0
- version: 1.27
- file manager: Infinix note 4 mobile file manager (v1.0)
Recording Of The Bug
Log cat to reproduce the bug
some copied and pasted part of the logcat referring to the diary app alone
04-20 10:39:23.502 14520 14520 E AndroidRuntime: FATAL EXCEPTION: main 04-20 10:39:23.502 14520 14520 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 14520 04-20 10:39:23.502 14520 14520 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-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-20 10:39:23.502 14520 14520 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-20 10:39:23.502 14520 14520 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-20 10:39:23.502 14520 14520 E AndroidRuntime: ... 9 more 04-20 10:57:50.770 20312 20312 E AndroidRuntime: FATAL EXCEPTION: main 04-20 10:57:50.770 20312 20312 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 20312 04-20 10:57:50.770 20312 20312 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-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-20 10:57:50.770 20312 20312 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-20 10:57:50.770 20312 20312 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-20 10:57:50.770 20312 20312 E AndroidRuntime: ... 9 more 04-20 11:11:38.261 23197 23197 E AndroidRuntime: FATAL EXCEPTION: main 04-20 11:11:38.261 23197 23197 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 23197 04-20 11:11:38.261 23197 23197 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-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-20 11:11:38.261 23197 23197 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-20 11:11:38.261 23197 23197 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-20 11:11:38.261 23197 23197 E AndroidRuntime: ... 9 more 04-20 11:25:06.115 25589 25589 E AndroidRuntime: FATAL EXCEPTION: main 04-20 11:25:06.115 25589 25589 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 25589 04-20 11:25:06.115 25589 25589 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-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-20 11:25:06.115 25589 25589 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-20 11:25:06.115 25589 25589 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) 04-20 11:25:06.115 25589 25589 E AndroidRuntime: ... 9 more 04-21 00:32:04.280 30270 30270 E AndroidRuntime: FATAL EXCEPTION: main
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for your contribution.
Thank you for providing the log-cat
Please consider pushing this to the project issue tab.
Last but not list, thank you for using utopian.
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Hey @knowledges, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hello @onos , I was designed to give advice to "steemit" users.
I recommend to increase this;
The most winning bid bot in the last 24 hours is ✅ "smartsteem"
You can enter "steembottracker.com" to find more offers.
You can make "Resteem" and advertise to the followers of the whale accounts.
"Resteem Bot" for you;
✅ @byresteem has 25.500 Followers + 7000 Sp + Upvote with min +55 accounts.
I am a bot, I can not answer the comment. I hope I could help. Good luck.
it could not be reproduced in Android 4 and 5 .i think it could be somethin to do with your file manager app

Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Hello, I don't know why you use android 4 and 5 to test a bug, actually you should be the one filling the ticket system you obviously need help 😡
Your contribution cannot be approved as I was unable to reproduce the bug in Android 7
Thanks!
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Hey @onos! Thank you for the great work you've done!
We're already looking forward to your next contribution!
Fully Decentralized Rewards
We hope you will take the time to share your expertise and knowledge by rating contributions made by others on Utopian.io to help us reward the best contributions together.
Utopian Witness!
Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.
Want to chat? Join us on Discord https://discord.me/utopian-io