Skip to content

Commit

Permalink
Fixed #1134 - Added Validation for accessing itinerary list.
Browse files Browse the repository at this point in the history
  • Loading branch information
amrhossamdev authored and aaronbrethorst committed Mar 4, 2024
1 parent 8fc27fa commit 27cb481
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 != null && mResponse.getPlan() != null
if (!mResponse.getPlan().getItinerary().isEmpty() && mResponse != null && mResponse.getPlan() != null
&& mResponse.getPlan().getItinerary().get(0) != null) {
mCallback.onTripRequestComplete(mResponse.getPlan(), mRequestUrl);
} else {
Expand Down

0 comments on commit 27cb481

Please sign in to comment.