Project Information
Repository : https://github.com/kaeptmblaubaer1000/android-torchlight
Title : TorchLight
Publisher : Kaeptm Blaubaer (kaeptmblaubaer1000)
Expected behavior
Supposedly, the "share" feature can be used without any errors.
Actual behavior
When I click on the "share" feature, the app suddenly crashes and exits by itself.
How to reproduce
- Install and open the app
- Next, click on the "Share" feature located in the top left menu of the app.
Then you will find the error as I experienced.
- Device: Xiaomi Redmi 4X
- Operating system: Marshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
- Application Version: 2.6
Recording Of The Bug
Proof of Work Done
Submitted the issue on GitHub: Click here
My GitHub Profile: https://github.com/ahyar92
Logcat
05-22 00:11:53.305 29721 29721 E AndroidRuntime: FATAL EXCEPTION: main
05-22 00:11:53.305 29721 29721 E AndroidRuntime: Process: com.fake.android.torchlight, PID: 29721
05-22 00:11:53.305 29721 29721 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at java.io.File.fixSlashes(File.java:183)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at java.io.File.<init>(File.java:130)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at com.fake.android.torchlight.MainActivity.onNavigationItemSelected(MainActivity.java:157)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:156)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:822)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.v7.view.menu.SubMenuBuilder.dispatchMenuItemSelected(SubMenuBuilder.java:88)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:156)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:969)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:342)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.view.View.performClick(View.java:5207)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:21177)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:742)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5527)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
05-22 00:11:53.305 29721 29721 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
05-22 00:11:53.307 29721 29721 E MQSEventManagerDelegate: failed to get MQSService.