--- android/TrainInfo/src/dk/thoerup/traininfo/StationList.java 2011/05/28 13:35:23 1484 +++ android/TrainInfo/src/dk/thoerup/traininfo/StationList.java 2011/05/28 17:38:44 1485 @@ -249,6 +249,11 @@ switch (item.getItemId()) { case OPTIONS_MAP: + if ( stations == null || stations.entries == null || stations.entries.size() == 0 ) { + Toast.makeText(this, "No stations to show on map", Toast.LENGTH_SHORT); //TODO: Translate + return true; + } + Intent intent = new Intent(this,StationMapView.class); ArrayList stationPoints = new ArrayList();