Skip to content

Commit

Permalink
Fixed OneBusAway#1187 - Extra validation
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
  • Loading branch information
amrhossamdev committed Mar 29, 2024
1 parent 2ac3e1b commit 8f81769
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2035,9 +2035,9 @@ private void makeWeatherRequest(){

@Override
public void onWeatherResponseReceived(ObaWeatherResponse response) {
weatherView.setVisibility(View.VISIBLE);
weatherResponse = response;
if(weatherResponse != null && weatherResponse.getCurrent_forecast() != null){
if(response != null && response.getCurrent_forecast() != null){
weatherView.setVisibility(View.VISIBLE);
weatherResponse = response;
setWeatherData();
}
}
Expand Down

0 comments on commit 8f81769

Please sign in to comment.