--- android/TrainInfoService/src/dk/thoerup/traininfoservice/db/StationDAO.java 2013/11/23 10:43:25 2077 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/db/StationDAO.java 2013/11/23 11:00:41 2078 @@ -55,10 +55,12 @@ String[] emptyArray = {}; station.setAliases( emptyArray ); } - - station.setTritStation( res.getInt(11) ); - if (res.wasNull()) - station.setTritStation( -1 ); + + int tritStation = res.getInt(11); + if (res.wasNull()) { + tritStation = -1; + } + station.setTritStation( tritStation ); return station; }