Skip to content

Commit

Permalink
Fixed OneBusAway#1165 - Trip planner crash
Browse files Browse the repository at this point in the history
Signed-off-by: Amr Hossam <amrhossam.dev@gmail.com>
  • Loading branch information
amrhossamdev authored and aaronbrethorst committed Mar 15, 2024
1 parent 69827e7 commit 44a33a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected void onPostExecute(Long result) {
return;
}

if (!mResponse.getPlan().getItinerary().isEmpty() && mResponse != null && mResponse.getPlan() != null
if (mResponse != null && mResponse.getPlan() != null && !mResponse.getPlan().getItinerary().isEmpty()
&& mResponse.getPlan().getItinerary().get(0) != null) {
mCallback.onTripRequestComplete(mResponse.getPlan(), mRequestUrl);
} else {
Expand Down

0 comments on commit 44a33a5

Please sign in to comment.