--- android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java 2010/09/08 12:31:55 1034 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureFetcher.java 2010/09/11 07:43:09 1037 @@ -79,6 +79,10 @@ departureBean.notifications.addAll(tempBean.notifications); } + if (departureBean.departureEntries.size() == 0) { + logger.info("No departures found for station " + stationID); + } + Collections.sort( departureBean.departureEntries ); @@ -246,17 +250,14 @@ if (time.equals("")) time = "0:00"; //Bane.dk bug work-around departure.setTime(time); - logger.info("Time: " + time);// TODO: remove int updated = extractUpdated( fields.get(1) ); departure.setUpdated(updated); - logger.info("Updated: " + updated);// TODO: remove String trainNumber = fields.get(2).text(); if (type.equalsIgnoreCase("S2")) //If it is S-train we need to extract the trainNumber trainNumber = trainNumber + " " + extractTrainNumber(fields.get(2)); departure.setTrainNumber(trainNumber); - logger.info("TrainNumber: " + trainNumber);// TODO: remove String destination = fields.get(3).text(); departure.setDestination(destination);