[Travel mate app v.5.5.0]App crashed when I accessed the shopping feature and hit the white background
App info
Travel mate v.5.5.0
https://github.com/project-travel-mate/Travel-Mate/issues/660
Descriptions
On the destination page, I clicked on a city and access the shopping feature, but the app crashed when I mistakenly press the white background.
Expected behavior
My expectation was to use the page freely without the fear of the app crashing whenever I mistakenly press or touch the white background.
Steps to reproduce
After login into the app,
Click on the menu by the top left side
Click on destination
Select any city and click on
shoppingpress any part of the white background housing the map features and note the crash.
Reproducing the behavior
Device used
Techno spark K7
Android 7.0
Logcat
05-15 21:30:05.227 9156 9156 E AndroidRuntime: Process: io.github.project_travel_mate, PID: 9156
05-15 21:30:05.227 9156 9156 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.github.project_travel_mate/io.github.project_travel_mate.travel.ListViewRealTimeActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context org.osmdroid.views.MapView.getContext()' on a null object reference
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.os.Looper.loop(Looper.java:203)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6251)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context org.osmdroid.views.MapView.getContext()' on a null object reference
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.<init>(MyLocationNewOverlay.java:100)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at utils.GPSTracker.displayLocationRequest(GPSTracker.java:154)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at io.github.project_travel_mate.travel.ListViewRealTimeActivity.onCreate(ListViewRealTimeActivity.java:55)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6670)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
05-15 21:30:05.227 9156 9156 E AndroidRuntime: ... 9 more```
Hi, @ckole. Again, nice catch. I want to suggest that you improve your description a bit. Descriptions should have more details compared to this one. Thanks for contributing and I am looking forward to your next report.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @knowledges! Keep up the good work!
Hi @ckole!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @ckole!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!