Expected behavior
wanted to forward a particular glt file from file manager, dont know which so i decided to open them to check before i forward, expected to see date and schedule from the file.
Actual behavior
the file refuse to open from file manager, as it crashes my Vcalender
installed a task app and it was not executable. and i found this when i checked the file details:
How to reproduce
- download the glt companion app
- open a specific programm under tracks
- open a specific time
- add it to back to bookmarks
- go back to bookmarks and share it to either telegram or whatsapp
- locate telegram or whatsapp location on file manager
- try and open the document
Crash occurs!
- Mobile: infinix note 4
- Operating system: android 7.0
- version: 1.4.5
Recording Of The Bug
logcat
04-23 00:52:36.679 18722 18736 E AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1 04-23 00:52:36.679 18722 18736 E AndroidRuntime: Process: com.mediatek.calendarimporter, PID: 18722 04-23 00:52:36.679 18722 18736 E AndroidRuntime: java.lang.NullPointerException: uri 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:111) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at android.content.ContentResolver.openInputStream(ContentResolver.java:701) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.mediatek.vcalendar.utils.VCalFileReader.createBufferReader(VCalFileReader.java:229) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.mediatek.vcalendar.utils.VCalFileReader.<init>(VCalFileReader.java:87) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.mediatek.vcalendar.VCalParser.initVCalFileReader(VCalParser.java:417) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.mediatek.vcalendar.VCalParser.startParsePreview(VCalParser.java:228) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at com.mediatek.calendarimporter.service.PreviewProcessor.run(PreviewProcessor.java:72) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 04-23 00:52:36.679 18722 18736 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: FATAL EXCEPTION: main 04-23 00:52:46.283 18751 18751 E AndroidRuntime: Process: org.billthefarmer.diary, PID: 18751 04-23 00:52:46.283 18751 18751 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-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1073) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934) 04-23 00:52:46.283 18751 18751 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-23 00:52:46.283 18751 18751 E AndroidRuntime: at org.billthefarmer.diary.Editor.onCreate(Editor.java:81) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6687) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 04-23 00:52:46.283 18751 18751 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
Posted on Utopian.io - Rewarding Open Source Contributors