Bug: Travel-Mate [v,5.5.0]App crashed when Ahmedabad or Delhi is clicked in weather forecast.

in utopian-io •  6 years ago 

Project Information

Describe the bug.

The app crashed when I clicked on Ahmedabad or Delhi on the select city for a weather forecast.

Steps to reproduce.

  • Launch the app.

  • Clicked on menu icon.

  • Then, click on utilities

  • And click on the weather forecast

  • Then select Delhi or Ahmedabad

  • And note the bug

Expected Behaviour

I was expecting to see the weather forecast information on any selected city

Screen recording

Devices and Versions):)

  • Device: [Itel]

  • Version [6.1]

  • App version [5.5.0]

Log

04-30 17:40:19.899 18568 18568 E AndroidRuntime: Process: io.github.project_travel_mate, PID: 18568
04-30 17:40:19.899 18568 18568 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setTint(int)' on a null object reference
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at android.support.v4.graphics.drawable.DrawableCompat.setTint(DrawableCompat.java:135)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at io.github.project_travel_mate.destinations.description.WeatherActivity$1.lambda$onResponse$1(WeatherActivity.java:199)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at io.github.project_travel_mate.destinations.description.-$$Lambda$WeatherActivity$1$RRp9GN8-IFXugRNFKefzfPHu_bc.run(lambda)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5452)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
04-30 17:40:19.899 18568 18568 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi @darewealth, thanks for making this report.

Contributions from you and a host of others towards the Travelmate project have been really useful. And I can see the project maintainers are quite timely in fixing and closing the issues. Good Job

I was able to reproduce the above error. Selecting Ahmedabad or Delhi results in a crash. Strange cause the other cities work as intended. Your crash log says it was caused by a null object reference. In essence, there was an attempt to access an instance field of the object referred by a null reference.

The expected and actual behaviors were well written. A reader can easily tell what went wrong from the first read. The steps you provided were simple and easy to follow.

I look 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, @fego! Keep up the good work!

Hi, @darewealth!

You just got a 1.15% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hey, @darewealth!

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!