Commit 0cf53b6fc9861a33c6b1bb8d0f2a8621aa750490
1 parent
8a1bce9a
update
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/com/bsth/data/gpsdata/arrival/GeoCacheData.java
| ... | ... | @@ -242,7 +242,11 @@ public class GeoCacheData { |
| 242 | 242 | List<Map<String, Object>> speedMap = jdbcTemplate.queryForList(sql); |
| 243 | 243 | Map<String, Double> speedTempMap = new HashMap<>(); |
| 244 | 244 | for (Map<String, Object> tMap : speedMap) { |
| 245 | - speedTempMap.put(tMap.get("LINE_CODE").toString(), Double.parseDouble(tMap.get("SPEEDING").toString())); | |
| 245 | + try { | |
| 246 | + speedTempMap.put(tMap.get("LINE_CODE").toString(), Double.parseDouble(tMap.get("SPEEDING").toString())); | |
| 247 | + } catch (NumberFormatException e) { | |
| 248 | + logger.error("speeding is null..."); | |
| 249 | + } | |
| 246 | 250 | } |
| 247 | 251 | speedLimitMap = speedTempMap; |
| 248 | 252 | } | ... | ... |