diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-07 09:55:54 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-07 09:55:54 +1300 |
commit | 33b2a5c9ab70ffe7bbdd074ce430920d2a0d3941 (patch) | |
tree | e1047e26004757cb580291bd7a02c968e20ffd69 /src/org/traccar/database/DataManager.java | |
parent | 617df639c1835b1710115403efe180c8f1804f02 (diff) | |
download | trackermap-server-33b2a5c9ab70ffe7bbdd074ce430920d2a0d3941.tar.gz trackermap-server-33b2a5c9ab70ffe7bbdd074ce430920d2a0d3941.tar.bz2 trackermap-server-33b2a5c9ab70ffe7bbdd074ce430920d2a0d3941.zip |
Fix compilation error in data manager
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index deb31094e..66d94ac91 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -124,8 +124,12 @@ public class DataManager implements IdentityManager { } @Override - public Device getDeviceById(long id) throws SQLException { - updateDeviceCache(!devicesById.containsKey(id)); + public Device getDeviceById(long id) { + try { + updateDeviceCache(!devicesById.containsKey(id)); + } catch (SQLException e) { + Log.warning(e); + } return devicesById.get(id); } |