Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in weather feature #1187

Closed
aaronbrethorst opened this issue Mar 29, 2024 · 3 comments · Fixed by #1188
Closed

Crash in weather feature #1187

aaronbrethorst opened this issue Mar 29, 2024 · 3 comments · Fixed by #1188

Comments

@aaronbrethorst
Copy link
Member

I saw this pop up on the console while working on the app.

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.onebusaway.android.io.request.weather.models.CurrentForecast.getIcon()' on a null object reference
	at org.onebusaway.android.ui.HomeActivity.setWeatherData(HomeActivity.java:2004)
	at org.onebusaway.android.ui.HomeActivity.onWeatherResponseReceived(HomeActivity.java:2029)
	at org.onebusaway.android.io.request.weather.WeatherRequestTask.onPostExecute(WeatherRequestTask.java:29)
	at org.onebusaway.android.io.request.weather.WeatherRequestTask.onPostExecute(WeatherRequestTask.java:8)
	at android.os.AsyncTask.finish(AsyncTask.java:771)
	at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0)
	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8177)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
@aaronbrethorst
Copy link
Member Author

fyi @amrhossamdev

@amrhossamdev
Copy link
Member

Investigating, what is the selected region?

@aaronbrethorst
Copy link
Member Author

Puget Sound, but the emulator was at 1600 Amphitheater Parkway, Mountain View CA.

amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
aaronbrethorst pushed a commit that referenced this issue Mar 29, 2024
* Fixed #1187 - Weather Feature Crash

Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
aaronbrethorst pushed a commit that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Mar 29, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
aaronbrethorst pushed a commit that referenced this issue Mar 30, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Aug 12, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
amrhossamdev added a commit to amrhossamdev/onebusaway-android that referenced this issue Aug 12, 2024
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants