aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-02-08 12:18:06 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-02-08 12:18:06 +0000
commit72aad0e9de176d41999587166a1914bcf7410e54 (patch)
treee390bfc02f83642aeafe49633755d545543ac6e3
parent0b4b69ee80d109887389dd0b9e83d71b2cb0fb19 (diff)
downloadsouthamptonuniversitymap-72aad0e9de176d41999587166a1914bcf7410e54.tar
southamptonuniversitymap-72aad0e9de176d41999587166a1914bcf7410e54.tar.gz
Fixed a bug where the BusStopActivity would crash.
-rw-r--r--src/net/cbaines/suma/BusStopActivity.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/cbaines/suma/BusStopActivity.java b/src/net/cbaines/suma/BusStopActivity.java
index b711770..6c46d03 100644
--- a/src/net/cbaines/suma/BusStopActivity.java
+++ b/src/net/cbaines/suma/BusStopActivity.java
@@ -265,11 +265,10 @@ public class BusStopActivity extends OrmLiteBaseActivity<DatabaseHelper> impleme
e.printStackTrace();
}
} else {
-
Log.i(TAG, "Route radio button made " + checked);
-
- displayTimetable(timetable);
-
+ if (timetable != null) { // If there is a timetable to display
+ displayTimetable(timetable);
+ }
}
}