Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
Fix issue with onebusaway-iphone app crashing when clicking on 'No ar…
Browse files Browse the repository at this point in the history
…rivals in next 30 minutes' button
  • Loading branch information
bdferris committed Mar 8, 2011
1 parent 410acbd commit e6f1dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/View/StopDetails/OBAGenericStopViewController.m
Expand Up @@ -601,7 +601,7 @@ - (void)tableView:(UITableView *)tableView didSelectServiceAlertRowAtIndexPath:(

- (void)tableView:(UITableView *)tableView didSelectTripRowAtIndexPath:(NSIndexPath *)indexPath {
NSArray * arrivals = _showFilteredArrivals ? _filteredArrivals : _allArrivals;
OBAArrivalAndDepartureV2 * arrivalAndDeparture = [arrivals objectAtIndex:indexPath.row];
OBAArrivalAndDepartureV2 * arrivalAndDeparture = (indexPath.row > 0 && indexPath.row < [arrivals count]) ? [arrivals objectAtIndex:indexPath.row] : nil;
if( arrivalAndDeparture ) {
OBAArrivalAndDepartureViewController * vc = [[OBAArrivalAndDepartureViewController alloc] initWithApplicationContext:_appContext arrivalAndDeparture:arrivalAndDeparture];
[self.navigationController pushViewController:vc animated:TRUE];
Expand Down

0 comments on commit e6f1dfa

Please sign in to comment.